Re: [Boa Constr] About Boa constructor 0.6.1
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2007-10-18 14:45:43
|
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 |