[PythonCE] Printing non-ascii characters
wolfsch at web.de
Mon Mar 17 12:47:56 CET 2008
I try without success to print non-ascii characters to the console.
aStr = 'schönes Wetter'
uStr = aStr.decode('latin-1') (or simpler: uStr = u'schönes Wetter')
>>> schXXnes Wetter (XX indicating non-printable characters)
On desktop Python installations the screen output is as desired:
>>> schönes Wetter
Whatever decoding I do, I can not manage to get the desired result on Windows CE. Is this an encoding/decoding problem I am unable to handle properly or rather a limitation of PythonCE or the operating system (WM6)?
sys.stdout.encoding is alway set to 'ascii' and I dont know how to change it. Some article I recently read discouraged from changing the default encoding ?!
I would appreciate any help.
More information about the PythonCE