Alexander Belopolsky <[email protected]> added the comment:
If Victor says so ...
Someone needs to check that it works on a UCS4 build, but on a narrow build I
don't think UTF-16-XX encodings need to do anything special - they just encode
the surrogates as ordinary code units.
>>> '\U00010000'.encode('UTF-16-BE').decode('UTF-16-BE') == '\U00010000'
True
>>> '\U00010000'.encode('UTF-16-LE').decode('UTF-16-LE') == '\U00010000'
True
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue10546>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com