[issue23993] Use surrogateescape error handler by default in open() if the locale is C

R. David Murray report at bugs.python.org
Sat Apr 18 16:30:46 CEST 2015


R. David Murray added the comment:

I am -1 on this.  (Or may be more).  What's the rationale?

I could see using utf-8 by default if the locale is C, but I don't think we want to encourage going back to a world where people don't pay attention to the encoding of their data.  A more productive approach to solving the problem that I think you are trying to solve here would be to work on including chardet in the standard library, something that was brought up, and seemed to receive positive reception (or at least not negative), during the Requests segment of the PyCon language summit.

----------
nosy: +r.david.murray

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23993>
_______________________________________


More information about the Python-bugs-list mailing list