sys.setdefaultencoding(name)
Askari
askari at addressNonValide.com
Mon Sep 20 08:07:53 EDT 2004
Harald Massa <cpl.19.ghum at spamgourmet.com> wrote in
news:Xns9569F39D2C884cpl19ghumspamgourmet at 195.20.224.116:
> 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
>
It work! :-)
Thanks!
More information about the Python-list
mailing list