Message274555
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 |
|
Date |
User |
Action |
Args |
2016-09-06 13:43:16 | xiang.zhang | set | recipients:
+ xiang.zhang, vstinner, ezio.melotti, lazka |
2016-09-06 13:43:16 | xiang.zhang | set | messageid: <1473169396.27.0.516092519958.issue27971@psf.upfronthosting.co.za> |
2016-09-06 13:43:16 | xiang.zhang | link | issue27971 messages |
2016-09-06 13:43:16 | xiang.zhang | create | |
|