Unicode error in exefied Python script
Martin v. Löwis
martin at v.loewis.de
Mon Jan 20 16:32:58 EST 2003
Christian Bretterklieber <cb at orcl.net> writes:
> I have now found the difference. When I execute the script,
> sys.getdefaultencoding() returns 'cp1252'.
So you have edited site.py? You should also undo this edit.
> Is there another simple method to set the default encoding?
No. Instead, you should modify your script not to rely on the system
default encoding.
> And what might be the cause for the exefied script to have a
> different encoding?
'ascii' is the factory default for Python. So the question is why you
don't get the factory default.
Regards,
Martin
More information about the Python-list
mailing list