PEP 393 vs UTF-8 Everywhere
petef4+usenet at gmail.com
Sat Jan 21 15:21:21 EST 2017
Marko Rauhamaa <marko at pacujo.net> writes:
>> py> low = '\uDC37'
> That should raise a SyntaxError exception.
Quite. My point was that with older Python on a narrow build (Windows
and Mac) you need to understand that you are using UTF-16 rather than
Unicode. On a wide build or Python 3.3+ then all is rosy. (At this point
I'm tempted to put in a winky emoji but that might push the internal
representation into UCS-4.)
More information about the Python-list