idle6.0 german umlauts (ascii > 128 Exception)
aleaxit at yahoo.com
Tue Nov 7 21:13:13 CET 2000
"Walter.Zettel" <Walter.Zettel at t-online.de> wrote in message
news:8u9afu$3ee$04$1 at news.t-online.com...
> Hello all responders,
> thank you for your help. I got another hint by someone, who reads this ng:
> in lib/site.py there is a line:
> I changed it to:
> and this works for me.
> But now I have one more question:
> Is this the official way to do it? Or have I to do somethin like "import
The 'official way' is not to touch site.py, but add your
customization in a separate sitecustomize.py file in
the same directory. There, you can call
or something similar, as I suggested in the post you
are here responding to. The setdefaultencoding method
is removed at the end of site.py, so you can only use
it up to the time that sitecustomize.py is called, not
later. (I can't see this stuff in the docs, but the comments
of site.py do make it reasonably clear).
More information about the Python-list