RE: AW: [PythonCE] UnicodeDecodeError with print

2005-03-14 Thread Isr Gish
You can set the default encoding in site.py with sys.setdefaultencoding(...) function. Make sure to do it before it is deleted. For it this function is deleted somewhere in the site module. All the best, Isr -Original Message- >From: "[EMAIL PROTECTED]"<[EMAIL PROTECTED]> >Sent: 3

AW: [PythonCE] UnicodeDecodeError with print

2005-03-14 Thread anne . wangnick
Hello Michael, this can happen with "normal" Python as well, try this running python.exe directly. The issue is not that you create a unicode object, the issue is that you want to print it. On the PC when using IDLE, sys.stdout.encoding is set to "cp1252". For file objects, "when Unicode strings a

[PythonCE] UnicodeDecodeError with print

2005-03-14 Thread Michael Foord
I am wondering if anyone knows the reason as to why : print u'£' should cause a UnicodeDecodeError on pythonce ? (The usual 'ascii codec cannot decode character...' message). Obviously the '£' character is a non-ascii character. I am just surprised that the print statement is using the ascii enc