problem with cjkcodecs on Mandrake linux

Michael Hudson mwh at python.net
Wed Mar 17 17:03:44 CET 2004


Skip Montanaro <skip at pobox.com> writes:

>     Anthony> But I am using gbcxterm, which displays Chinese very well,
>     Anthony> plus, I think I can also input Chinese using this terminal.
>     Anthony> Then why do I still have this problem?
> 
> Look in your installed site.py file for the encoding variable and change it
> as you like.  The default is "ascii".  Sounds like your sys admin may have
> changed it to "latin-1".

Nah, more likely is that he is using 2.3 which uses
locale.nl_langinfo(CODESET) to find out which encoding to use on
output.

Cheers,
mwh

-- 
  (ps: don't feed the lawyers: they just lose their fear of humans)
                                         -- Peter Wood, comp.lang.lisp



More information about the Python-list mailing list