RE: help: chinese hanzi characters in webmail

"Simon Cousins" <simon-MTRkitCQmL6jF/[email protected]> Mon, 26 Apr 2004 12:09:06 +0800
Newsgroups gmane.org.user-groups.linux.beijing.tech
Message-ID <[email protected]>
Bjorn wrote:

> 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.)

Yeah, I tried to set global prefs in the Squirrelmail config file but was
unsuccessful.  The per-user setting doesn't allow for character set prefs,
just "Language".  Simplified Chinese sets gb2312.

You're right though.

/src



> 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.
> 
> 
> _______________________________________________
> blug-tech list
> [email protected]
> http://list.beijinglug.org/cgi-bin/mailman/listinfo/blug-tech