UnicodeError...
Martin v. Loewis
martin at v.loewis.de
Tue Jul 30 14:03:01 EDT 2002
Teemu Luojola <tempe at pp.inet.fi> writes:
> Well, here is the result, when I entered precisely what was told in FAQ:
>
> >>>> encoding = "ascii"
> >>>> import locale
> >>>> loc = locale.getdefaultlocale()
> >>>> if loc[1]:
> > encoding = loc[1]
The FAQ did not tell you enter these statements at the interactive
prompt. It told you to modify the file site.py, which is located on
your hard disk.
> How it is possible, that sys.setdefaultencoding() does not exist?
It's deleted from sys in site.py.
Regards,
Martin
More information about the Python-list
mailing list