What encoding does u'...' syntax use?

Denis Kasak denis.kasak at gmail.com
Sat Feb 21 14:32:10 EST 2009


On Sat, Feb 21, 2009 at 7:24 PM, Thorsten Kampe
<thorsten at thorstenkampe.de> wrote:
>
> I'm pretty much sure it is UCS-2 or UCS-4. (Yes, I know there is only a
> slight difference to UTF-16/UTF-32).

I wouldn't call the difference that slight, especially between UTF-16
and UCS-2, since the former can encode all Unicode code points, while
the latter can only encode those in the BMP.

--
Denis Kasak



More information about the Python-list mailing list