sys.setdefaultencoding(name)

Harald Massa cpl.19.ghum at spamgourmet.com
Sun Sep 19 17:56:44 EDT 2004


Askari,

> """
> import site
> site.encoding = "latin_1"
> """
> 
> Why?
> And, I do the good think? (site.encoding = "latin_1")

No, you do a the bad thing.

You have to EDIT the site.py within python\lib\site.py

open it within an editor, find "ASCII" and replace by latin1

site.encodiging="Latin_1" just adds an attribute NOBODY cares for to a 
module in memory.

Harald



More information about the Python-list mailing list