3 ms·
> It was my understanding it defaulted to UTF-8. For external IO, internally it's in UTF-16 (actually UCS-2, mostly unaware of surrogates) or in UCS-4 (via a c
by masklinn 16y ago
> It was my understanding it defaulted to UTF-8.
For external IO, internally it's in UTF-16 (actually UCS-2, mostly unaware of surrogates) or in UCS-4 (via a compile-time switch).
See http://docs.python.org/c-api/unicode.html#Py_UNICODE http://docs.python.org/c-api/unicode.html#Py_UNICODE for the Py_UNICODE API.