From: James Li <jam...@gm...> - 2008-04-06 20:26:52
|
Hi, I have a similar problem and need help. I have a server side python script that emails user submitted content to email accounts. The content is normally Simplified Chinese and when I view it from Squirrelmail it appears corrupted. However, emails sent by the same script to my other accounts (yahoo, hotmail) are fine. I changed my script to set charset=utf-8 to make it work for Squirrelmail but when I try to reply the message the quoted message is again corrupted. The following is the email headers. From: my...@ho... To: "['my...@ya...', 'ad...@my...']"@mail.mydomain.com Subject: Feedback MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Message-Id: <200...@ma...> Date: Sun, 6 Apr 2008 15:46:01 -0400 (EDT) It's interesting that if I change charset to gb2312 the message will be corrupted, even if the content is gb2312. Emails sent from Squirrelmail's web interface can be viewed and replied OK. Mails sent from yahoo/hotmail can be viewed and replied OK. It's just the script ... My setup is Squirrelmail 1.4.10a, php5, firefox&ie7. I used the conf.pl script to set langauage and charset to zh_CN and gb2312 respectively. The display option is set to Simp Chinese for the client. Thanks! Frankie Wong wrote: > > > > Hi List, > > After I changed functions/i18n.php as follows: > > $languages['zh_TW']['NAME']��� = 'Chinese Trad'; > $languages['zh_TW']['CHARSET'] = 'utf-8'; > $languages['zh_TW']['LOCALE']� > = 'zh_TW.UTF-8'; > $languages['tw']['ALIAS']����� = > 'zh_TW'; > > $languages['zh_CN']['NAME']��� = 'Chinese > Simp'; > $languages['zh_CN']['CHARSET'] = 'utf-8'; > $languages['zh_CN']['LOCALE']� = 'zh_CN.UTF-8'; > $languages['cn']['ALIAS']����� = 'zh_CN'; > > All > chinese characters can be converted and displayed with UTF-8 charset when > I received > email with big5 or gb2312 charset. However, when I forward and reply such > an email, > all original content resume original charset and can't be displayed well. > Any > idea? > > Best Regards, > > Frankie Wong > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > ----- > squirrelmail-i18n mailing list > Posting guidelines: http://squirrelmail.org/postingguidelines > Information about translations: > http://squirrelmail.org/wiki/LanguageTranslation > List address: squ...@li... > List archives: > http://news.gmane.org/gmane.mail.squirrelmail.internationalization > List info (subscribe/unsubscribe/change options): > https://lists.sourceforge.net/lists/listinfo/squirrelmail-i18n > -- View this message in context: http://www.nabble.com/Problem-of-Traditional-Chinese---Simplified-Chinese-with-UTF8-tp16011794p16529375.html Sent from the squirrelmail-i18n mailing list archive at Nabble.com. |