Incredible!! That's it!!!
Thanks a lot for this bit of precious code!
Oliver
路路路
-----Urspr眉ngliche Nachricht-----
Von: Oleg Deribas [mailto:rus43@kharkov.ukrtel.net]
Gesendet: Mittwoch, 5. Mai 2004 14:37
An: wxPython-users@lists.wxwidgets.org
Betreff: Re: [wxPython-users] Global unicode setting for Py2Exe
Oliver Walczak wrote:
I use a sitecustomize.py file to set the
internal string codec globally to "iso-8859-1". The XML parser in the
distributed project (generated with py2exe) fails with the well known
error
"ordinal not in range (128)" etc.
I use this hack (courtesy of Oleg Broytmann):
reload(sys)
sys.setdefaultencoding(codepage)
at the start of my application.
--
Oleg Deribas,
http://copi.ru/14000/
---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org