newbie : unicode

Martin v. Loewis martin at v.loewis.de
Wed Jul 31 02:52:17 EDT 2002


polux <polux2001 at wanadoo.fr> writes:

> I'm using IDLE for windows and when i'm using a char like é or à (i'm
> french :)), i get the error message : UnicodeError: ASCII encoding
> error: ordinal not in range(128)
> 
> but if i've understood, Python works with unicode, so there should be
> no problem !

The problem is that Python does not know what encoding to use for
those characters; by default, it assumes ASCII, but ASCII does not
support those characters. A work-around is described in

http://www.python.org/doc/FAQ.html#4.102

Regards,
Martin




More information about the Python-list mailing list