This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pradyunsg
Recipients pradyunsg
Date 2013-03-04.10:49:37
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1362394177.55.0.407970210278.issue17348@psf.upfronthosting.co.za>
In-reply-to
Content
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
€
>>>
History
Date User Action Args
2013-03-04 10:49:37pradyunsgsetrecipients: + pradyunsg
2013-03-04 10:49:37pradyunsgsetmessageid: <1362394177.55.0.407970210278.issue17348@psf.upfronthosting.co.za>
2013-03-04 10:49:37pradyunsglinkissue17348 messages
2013-03-04 10:49:37pradyunsgcreate