472,121 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,121 software developers and data experts.

Re: Changing the (codec) error handler for the stdout/stderr streamsin Python 3.0

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.

John Nagle
Sep 2 '08 #1
2 1065
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
Sep 2 '08 #2
John Nagle wrote:
Python 5 is even stricter. Only ASCII (chars 0..127) can be sent
to standard output by default.
Python 5? (I guess I haven't been following these things enough...)

Well, I would sure hope not.

--
znark

Sep 2 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Xeon | last post: by
5 posts views Thread by Wesley Henwood | last post: by
2 posts views Thread by Massi | last post: by
3 posts views Thread by Wolfram | last post: by
5 posts views Thread by Grant Edwards | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.