Re: unicode error

"Werner F. Bruhin" <[email protected]>
Newsgroups gmane.comp.ide.boa-constructor.user
Message-ID <[email protected]>
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

-------------------------------------------------------------------------
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/

_______________________________________________
Boa-constructor-users mailing list
Boa-constructor-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/boa-constructor-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.