Re: AW: [PythonCE] UnicodeDecodeError with print

2005-03-16 Thread Isr Gish
"Michael Foord"<[EMAIL PROTECTED]> wrote: >The encoding that I need is ``sys.stdout.encoding`` not >``sys.defaultencoding`` (as I learned yesterday). Thanks for the reply >though... > I'm not clear what you meen by sys.stdout.encoding. As far as I can tell there no such thing. Also I

Re: AW: [PythonCE] UnicodeDecodeError with print

2005-03-15 Thread Michael Foord
Thanks for the reply Sebastian - very helpful. I didn't know about ``sys.stdout.encoding`` which was part of the missing information. You filled in a lot more. The PDA itself is capable of displaying all sorts of weird and wonderful characters - I wonder if it's possible to access this function

Re: AW: [PythonCE] UnicodeDecodeError with print

2005-03-15 Thread Michael Foord
uot;<[EMAIL PROTECTED]>, "pythonce@python.org" >Subject: AW: [PythonCE] UnicodeDecodeError with print > >Hello Michael, > >this can happen with "normal" Python as well, try this running python.exe >directly. >The issue is not that you create a un

RE: AW: [PythonCE] UnicodeDecodeError with print

2005-03-14 Thread Isr Gish
ECTED]> >Sent: 3/14/05 1:06:50 PM >To: "Michael Foord"<[EMAIL PROTECTED]>, "pythonce@python.org" >Subject: AW: [PythonCE] UnicodeDecodeError with print > >Hello Michael, > >this can happen with "normal" Python as w

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