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
Isr Gish wrote: 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. The encoding that I need is ``sys.stdout.encoding`` not ``sys.defaultencoding`` (as I l

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