Serhiy Storchaka added the comment:
u'\U000104a2' == u'\ud801\udca2' on narrow build.
u'\ud801'.encode('utf-8', 'surrogatepass') == b'\xed\xa0\x81'
u'\udca2'.encode('utf-8', 'surrogatepass') == b'\xed\xb2\xa2'
Hope it will help.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue13153>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com