sys.setdefaultencoding(name)

Askari askari at addressNonValide.com
Sun Sep 19 08:34:36 EDT 2004


Harald Massa <cpl.19.ghum at spamgourmet.com> wrote in
news:Xns9568A73F4BFF9cpl19ghumspamgourmet at 195.20.224.116: 

> My solution is to grab site.py, dig up "default encoding" and change
> from imperalistic ASCII to LATIN-1. 

euh... I try (the line #2 and #3 in my ".py"):
"""
import site
site.encoding = "latin_1"
"""

but I have this error when I modify a widget (with keyboard) I have this 
error :
"""
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc9 in position 0: 
ordinal not in range(128)
"""

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


Askari



More information about the Python-list mailing list