problem with cjkcodecs on Mandrake linux

"Martin v. Löwis" martin at
Wed Mar 17 08:01:02 CET 2004

Anthony Liu wrote:
> OK, gotcha. By the way, do you know how to set the
> default language of Mandrake or any linux system, so
> that I can probably mimic.

You need to set the LANG environment variable. This
is best done on a per-user basis, e.g. in the .login
file of the user. Setting LANG to zh_CN should give
you a (simplified) Chinese environment. Python 2.3
will automatically pick up that setting when printing
Unicode strings.


More information about the Python-list mailing list