Changing the (codec) error handler for the stdout/stderr streams in Python 3.0
steve at REMOVE-THIS-cybersource.com.au
Tue Sep 2 18:54:54 CEST 2008
On Tue, 02 Sep 2008 09:57:05 -0700, John Nagle wrote:
> Jukka Aho wrote:
>> Just a tip for those who are only just cutting their teeth on Python
>> 3.0 and might have encountered the same problem as I did:
>> When a Python (3.x) program is run on a terminal that only supports a
>> legacy character encoding - such as Latin 1 or Codepage 437 - all
>> characters printed to stdout will be automatically converted from the
>> interpreter's internal Unicode representation to this legacy character
> Python 5 is even stricter. Only ASCII (chars 0..127) can be sent
> to standard output by default.
Python 5??? Is this the time machine again?
More information about the Python-list