[issue9126] errors='replace' does not work at Windows command line

Ezio Melotti report at bugs.python.org
Thu Jul 1 00:29:15 CEST 2010


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

The problem is not in the reading part, but in the print().
Since the default encoding of your terminal is cp437 and cp437 is not able to encode the "bad character" (U+2019 RIGHT SINGLE QUOTATION MARK), an error is raised.

----------
nosy: +ezio.melotti
resolution:  -> invalid
stage:  -> committed/rejected
status: open -> closed
type:  -> behavior

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


More information about the Python-bugs-list mailing list