problem with cjkcodecs on Mandrake linux

Anthony Liu antonyliu2002 at yahoo.com
Tue Mar 16 23:30:12 EST 2004


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.

I want to set the default language of my Mandrake to
Chinese.

Thanks.

--- Erik Max Francis <max at alcyone.com> wrote:
> Anthony Liu wrote:
> 
> > I get the following error message.
> > 
> > [antony at ancho tmp]$ python snake.py
> > Traceback (most recent call last):
> >   File "snake.py", line 6, in ?
> >     print a
> > UnicodeEncodeError: 'latin-1' codec can't encode
> > characters in position 0-1: ordinal not in
> range(256)
> > [antony at ancho tmp]$
> > 
> > What is the problem please?
> 
> The problem is the default encoding is Latin-1,
> presumably because
> that's the only thing your xterm/virtual console
> understands.  So Python
> is rightly complaining that it can't print the
> Chinese characters for
> you.
> 
> -- 
>  __ Erik Max Francis && max at alcyone.com &&
> http://www.alcyone.com/max/
> /  \ San Jose, CA, USA && 37 20 N 121 53 W &&
> &tSftDotIotE
> \__/ In this world, nothing is certain but death and
> taxes.
>     -- Benjamin Franklin
> -- 
> http://mail.python.org/mailman/listinfo/python-list


__________________________________
Do you Yahoo!?
Yahoo! Mail - More reliable, more storage, less spam
http://mail.yahoo.com




More information about the Python-list mailing list