Re: About Boa constructor 0.6.1
Riaan Booysen <[email protected]>
| Newsgroups | gmane.comp.ide.boa-constructor.user |
|---|---|
| Message-ID | <[email protected]> |
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. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/