[Tutor] symbol encoding and processing problem

Kent Johnson kent37 at tds.net
Wed Oct 17 15:15:19 CEST 2007

Timmie wrote:
> OK, I found out.
>> Since it didn't work in IPython as well I assume that I need to change the
>> encoding of the IPython shell to UTF-8, too. Still need to find out where.
> Put a file called 'sitecustomize.py' into any directory on your PYTHONPATH.
> write the folowing two lines in that file:
> import sys
> sys.setdefaultencoding('utf-8')

Just be aware that this affects portability of your scripts; they will 
require this same change to run on other systems. For this reason you 
might want to change the code instead. If you give a specific example of 
what is failing I will try to help.


More information about the Tutor mailing list