UnicodeError: ASCII decoding error: ordinal not in range(128)

Hrvoje Nezic hnezic at yahoo.com
Wed Jan 9 02:32:29 EST 2002


I get this error whan I try to use characters above 128.
(I am using Python 2.2 on Windows 2000).

Python FAQ suggests the following to change
the default encoding:

import sys
sys.setdefaultencoding(encoding)

However, the module sys (at least at my machine) doesn't have
setdefaultencoding function.

Is there some other way to fix that?

Regards,
Hrvoje Nezic







More information about the Python-list mailing list