Changing the (codec) error handler for the stdout/stderr streams in Python 3.0

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Tue Sep 2 12:54:54 EDT 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
>> set.
> 
>     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?



-- 
Steven



More information about the Python-list mailing list