2 ms·
> Also, it's incompatible with UTF-8 strings stored in C That's not true as of 3.3. It will store the compact representation, which in most cases is ASCII, whi
by viraptor 11y ago
> Also, it's incompatible with UTF-8 strings stored in C
That's not true as of 3.3. It will store the compact representation, which in most cases is ASCII, which is UTF-8 compatible. https://www.python.org/dev/peps/pep-0393/ https://www.python.org/dev/peps/pep-0393/
So unless you go outside of UCS-1, you don't need to reencode anything.