RE: help: chinese hanzi characters in webmail
"Bjorn Stabell" <[email protected]> Fri, 23 Apr 2004 17:28:27 +0800
| Newsgroups | gmane.org.user-groups.linux.beijing.tech |
|---|---|
| Organization | Exoweb |
| Message-ID | <[email protected]> |
Isn't it possible to set the encoding of what Squirrelmail sends out to UTF-8 so it'll work for all languages of the world? (If I had to pick one encoding, that would be my favorite.) Simon wrote: > Solution: > > Squirrelmail appears to have two methods of setting character > set preferences. > > The most obvious, in the config.php file, ships with > iso-8559-1 as the default character set. Changing this > setting to gb2312 in the config.php file does not fix the problem. > > The second and less-obvious method is successful. On a > per-client basis, Squirrelmail allows an encoding setting to > be changed under Options/Display Settings/General Display > Options/Language. A pull-down menu gives a long list of > languages, including "Simplified Chinese". > > Making this change switches the user interface to Simplified > Chinese (as one would expect with for a "Display Option"). > What this setting also does is that it correctly switches the > encoding "Character-Type" value in outbound email headers to gb2312. > > This means that Outlook correctly switches received messages > to gb2312 Character-Type, and the Hanzi displays properly. > > Note that no change needs to be made in the browser's > encoding preferences (although making the change to gb2312 > user interface obviously requires the browser to be set to a > compatible character set so that the UI is readable. > But this should be automatic.) > > Thanks to Ken Wong and Matteo.