Re: [Boa Constr] About Boa constructor 0.6.1
Status: Beta
Brought to you by:
riaan
From: Riaan B. <riaan@e.co.za> - 2007-10-18 15:18:39
|
Hi Werner, Werner F. Bruhin wrote: >>e.g. Boa.py -U utf-8 > > That doesn't look like it works for me, e.g.: > > C:\Python25\Lib\site-packages\boa\Boa.pyw -O .boa-constructor-mine -U > iso8859-1 > > import wx > >>> wx.GetDefaultPyEncoding() > 'utf-8' > > 'utf-8' is what is defined in my sitecustomize.py and if I remove it and > the .pyc and .pyo I get: > > import wx > >>> wx.GetDefaultPyEncoding() > 'cp1252' I'm not sure what will happen if you mix sitecustomize with the -U parameter, as far as I understand it, -U should override sitecustomize, but from your example it looks like it doesn't. I guess don't mix them. BTW, is sys.getdefaultencoding() the same as wx.GetDefaultPyEncoding()? I'd guess sys.setdefaultencoding() must just be called before wx is imported. This is what I get: Boa.py -U utf-8 >>> import sys >>> sys.getdefaultencoding() 'utf-8' >>> import wx >>> wx.GetDefaultPyEncoding() 'utf-8' Boa.exe -U utf-8 >>> import sys >>> sys.getdefaultencoding() 'utf-8' >>> import wx >>> wx.GetDefaultPyEncoding() 'utf-8' Cheers, Riaan. |