
Dec. 8, 2010
9:48 p.m.
Alexander Belopolsky <belopolsky@users.sourceforge.net> 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 <report@bugs.python.org> <http://bugs.python.org/issue10546> _______________________________________