New submission from Pradyun Gedam: 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 € >>> ---------- components: IDLE messages: 183431 nosy: Pradyun.Gedam priority: normal severity: normal status: open title: Unicode - encoding seems to be lost for inputs of unicode chars versions: Python 2.7 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue17348> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com