3 ms·
> Since Python strings have no fixed encoding, but choose "the most efficient one" (heuristically) when decoding, they can cope better than a fixed UTF-8 encodi
by the_mitsuhiko 10y ago
> Since Python strings have no fixed encoding, but choose "the most efficient one" (heuristically) when decoding, they can cope better than a fixed UTF-8 encoding in these cases.
That is wrong. Python can never pick the most efficient encoding unless you decode from latin1.
- dom0 10y agoPEP 393
- the_mitsuhiko 10y agoThat's why I said it can use the most appropriate encoding in the latin1 case. Before that it would never have the right encoding.