newbie: unicode

Jan Weingärtner jweingart at
Mon Jan 6 23:55:05 CET 2003


I'm just beginning to learn Python.
My tutorial gives an example how to convert a unicode
string to utf-8:

>>> u"äöü".encode('utf-8')

If i try to execute this command, i get the error message:
"UnicodeError: ASCII encoding error: ordinal not in range(128)"


thanks and regards,

More information about the Python-list mailing list