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