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 belopolsky
Recipients belopolsky, cgw, docs@python, lemburg, terry.reedy, vstinner
Date 2010-12-08.21:48:09
SpamBayes Score 6.402712e-05
Marked as misclassified No
Message-id <1291844897.23.0.205752165721.issue10546@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-12-08 21:48:17belopolskysetrecipients: + belopolsky, lemburg, terry.reedy, cgw, vstinner, docs@python
2010-12-08 21:48:17belopolskysetmessageid: <1291844897.23.0.205752165721.issue10546@psf.upfronthosting.co.za>
2010-12-08 21:48:09belopolskylinkissue10546 messages
2010-12-08 21:48:09belopolskycreate