Message183431
In IDLE, I have spotted a peculiar problem.
I have attached an .png file which is a screen capture of 'session' on IDLE. It seems that the Unicode character that has been input, loses its encoding.
My 'session'
Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> c = u'€'
>>> ord(c)
128
>>> c.encode('utf-8')
'\xc2\x80'
>>> c
u'\x80'
>>> print c
>>> c = u'\u20ac'
>>> ord(c)
8364
>>> c.encode('utf-8')
'\xe2\x82\xac'
>>> c
u'\u20ac'
>>> print c
€
>>> |
|
Date |
User |
Action |
Args |
2013-03-04 10:49:37 | pradyunsg | set | recipients:
+ pradyunsg |
2013-03-04 10:49:37 | pradyunsg | set | messageid: <1362394177.55.0.407970210278.issue17348@psf.upfronthosting.co.za> |
2013-03-04 10:49:37 | pradyunsg | link | issue17348 messages |
2013-03-04 10:49:37 | pradyunsg | create | |
|