[Python-Dev] Python3 "complexity"
Serhiy Storchaka
storchaka at gmail.com
Fri Jan 10 19:52:18 CET 2014
10.01.14 18:27, Baptiste Carvello написав(ла):
> would it make sense to be more general, and allow a "lenient mode",
> where all files implicitly opened with the default encoding would also
> use the surrogateescape error handler ?
The surrogateescape error handler is compatible only with
ASCII-compatible encodings (i.e. no ShiftJIS, no UTF-16). It can't be
used by default. But you can set PYTHONIOENCODING=:surrogateescape and
got you default locale encoding with surrogateescape.
More information about the Python-Dev
mailing list