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 serhiy.storchaka
Recipients Arfrever, a.badger, abadger1999, benjamin.peterson, ezio.melotti, lemburg, ncoghlan, pitrou, r.david.murray, serhiy.storchaka, vstinner
Date 2013-08-22.14:16:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1377180973.52.0.75482631978.issue18713@psf.upfronthosting.co.za>
In-reply-to
Content
>>> ('\udcff' + 'qwerty').encode('utf-16le', 'surrogateescape')
b'\xff\xdcq\x00w\x00e\x00r\x00t\x00y\x00'
>>> ('\udcff' + 'qwerty').encode('utf-16le', 'surrogateescape').decode('utf-16le', 'surrogateescape')
'\udcff\udcdcqwerty'
>>> ('\udcff' + 'qwerty').encode('utf-16le', 'surrogateescape').decode('utf-16le', 'surrogateescape').encode('utf-16le', 'surrogateescape')
b'\xff\xdc\xdc\xdcq\x00w\x00e\x00r\x00t\x00y\x00'
>>> ('\udcff' + 'qwerty').encode('utf-16le', 'surrogateescape').decode('utf-16le', 'surrogateescape').encode('utf-16le', 'surrogateescape').decode('utf-16le', 'surrogateescape')
'\udcff\udcdc\udcdc\udcdcqwerty'
History
Date User Action Args
2013-08-22 14:16:13serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, ncoghlan, pitrou, vstinner, abadger1999, benjamin.peterson, ezio.melotti, a.badger, Arfrever, r.david.murray
2013-08-22 14:16:13serhiy.storchakasetmessageid: <1377180973.52.0.75482631978.issue18713@psf.upfronthosting.co.za>
2013-08-22 14:16:13serhiy.storchakalinkissue18713 messages
2013-08-22 14:16:13serhiy.storchakacreate