[issue2052] Allow changing difflib._file_template character encoding.

Terry J. Reedy report at bugs.python.org
Wed Mar 20 12:15:31 CET 2013


Terry J. Reedy added the comment:

After thinking about it more, the real problem is that the charset setting must match the chars used and how they re encoded, so no one setting is right for all uses. An alternative to changing the default in existing versions is to at least document what it is and explain how to work around it with .replace -- for instance output.replace('ISO-8859-1', 'utf-8'). I agree that adding a parameter (charset=xxx) is a new feature.

----------

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


More information about the Python-bugs-list mailing list