Re: [Boa Constr] unicode error
Status: Beta
Brought to you by:
riaan
From: Werner F. B. <wer...@fr...> - 2007-10-04 08:54:00
|
Hi, nieninesun wrote: > Hi everyone > i install the current release version of BOA constructor 0.6.1.but > after startup,there is some error message was displayed on the python > window,My enviorment was following: > python2.4 ,wxpython-2.8-win32-unicode,boa-constructor-0.6.1. the > error message is : > Traceback (most recent call last): > File "Editor.pyc", line 1148, in OnTabsNotebookPageChanged > File "Editor.pyc", line 1057, in updateTitle > UnicodeDecodeError: 'ascii' codec can't decode byte 0xb1 in > position 0: ordinal > not in range(128) > Traceback (most recent call last): > File "Editor.pyc", line 1148, in OnTabsNotebookPageChanged > File "Editor.pyc", line 1057, in updateTitle > UnicodeDecodeError: 'ascii' codec can't decode byte 0xb1 in position > 0: ordinal > not in range(128) > showing main frames > how can i solve such problem? One way to solve this is to create a file called 'sitecustomize.py' in your Python folder and have these two lines in it: import sys sys.setdefaultencoding('utf-8') Werner |