Re: About Boa constructor 0.6.1
"Werner F. Bruhin" <[email protected]>
| Newsgroups | gmane.comp.ide.boa-constructor.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Riaan,
Riaan Booysen wrote:
> Hi,
>
> Werner F. Bruhin wrote:
>>> import sys
>>> sys.setdefaultencoding('latin')
>>>
>>> Nothing changes, by default this is 'ascii'.
>>>
>>> How to change that at startup ?
>> I don't know if this can be done using the .exe installer, maybe Riaan
>> knows of a way.
>
> Yes, you can set the default encoding for Boa (in the exe and source
> version) with the command-line parameter -U.
> 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'
Werner
-------------------------------------------------------------------------
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/