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 xiang.zhang
Recipients ezio.melotti, lazka, vstinner, xiang.zhang
Date 2016-09-06.13:43:16
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1473169396.27.0.516092519958.issue27971@psf.upfronthosting.co.za>
In-reply-to
Content
With the latest build, even encode will fail:

Python 3.6.0a4+ (default:dad4c42869f6, Sep  6 2016, 21:41:38) 
[GCC 5.2.1 20151010] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> u"\ud83d".encode("utf-16-le")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'utf-16-le' codec can't encode character '\ud83d' in position 0: surrogates not allowed
History
Date User Action Args
2016-09-06 13:43:16xiang.zhangsetrecipients: + xiang.zhang, vstinner, ezio.melotti, lazka
2016-09-06 13:43:16xiang.zhangsetmessageid: <1473169396.27.0.516092519958.issue27971@psf.upfronthosting.co.za>
2016-09-06 13:43:16xiang.zhanglinkissue27971 messages
2016-09-06 13:43:16xiang.zhangcreate