Message92127
If you don't specify the encoding, unicode() will decode 'var' using the
default ascii codec and it will fail if 'var' contains non-ascii
characters. You should use var.decode(encoding) instead.
The fact that the first print is not displayed correctly is probably due
to the limitation of the Windows terminal. |
|
Date |
User |
Action |
Args |
2009-09-01 07:55:20 | ezio.melotti | set | recipients:
+ ezio.melotti, shura_zam |
2009-09-01 07:55:20 | ezio.melotti | set | messageid: <1251791720.61.0.543044433103.issue6815@psf.upfronthosting.co.za> |
2009-09-01 07:55:17 | ezio.melotti | link | issue6815 messages |
2009-09-01 07:55:17 | ezio.melotti | create | |
|