[Tutor] Unicode Problem

Rainer Mansfeld MLists at romulo.de
Sun Sep 12 16:52:22 CEST 2004


Hi Kent,
> You can set the default encoding used to convert between 8-bit strings 
> and unicode strings. Normally the default encoding is 'ascii'. You can 
> change it by creating a file called sitecustomize.py. Put the file in 
> the directory Python/Lib/site-packages. The contents of the file should be
> import sys
> sys.setdefaultencoding('latin-1')
> 
Thanks a lot. That solves my problem.
This really is a great list.

    Rainer



More information about the Tutor mailing list