[i18n] Re: IMP4 japanese subject problem

Jan Schneider jan at horde.org
Tue Feb 22 01:45:16 PST 2005


Zitat von Hiromi Kimura <hiromi at tac.tsukuba.ac.jp>:

> Problem: viewing of japanese subject strings collaped sometimes
>   (in mailbox view and message view)
>
> Reason:
>  Japanese mails uses iso-2022-jp(7 bit) encoding, for example;
>    Subject: =?ISO-2022-JP?B?GyRCJSYlIyVrJTk2bj18GyhC?=
>
>  This string is decoded by decode() in horde/lib/Horde/MIME.php;
>       (line 351)
>        case 'B':
>        case 'b':
>            $decoded = urldecode(base64_decode($encoded_text));
>            $decoded = String::convertCharset($decoded, $charset, 
> $to_charset);
>
>  The result string of base64_decode() is;
>    esc $ B % & % # % k % 9 6 n = | esc ( B    (18 bytes total)
>                        ^ ^ ^
>  these '%9' and '6n' repesent japanese characters,
>  but urldecode() convert '%96' to another one !!

Please add a bug report at bugs.horde.org and upload an example message.

Jan.

-- 
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


More information about the i18n mailing list