Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #59879 > unrolled thread

Re: [Python-ideas] Unicode stdin/stdout

Started byVictor Stinner <victor.stinner@gmail.com>
First post2013-11-18 16:25 +0100
Last post2013-11-18 16:25 +0100
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [Python-ideas] Unicode stdin/stdout Victor Stinner <victor.stinner@gmail.com> - 2013-11-18 16:25 +0100

#59879 — Re: [Python-ideas] Unicode stdin/stdout

FromVictor Stinner <victor.stinner@gmail.com>
Date2013-11-18 16:25 +0100
SubjectRe: [Python-ideas] Unicode stdin/stdout
Message-ID<mailman.2850.1384788355.18130.python-list@python.org>
Why do you need to force the UTF-8 encoding? Your locale is not
correctly configured?

It's better to set PYTHONIOENCODING rather than replacing
sys.stdout/stderr at runtime.

There is an open issue to add a TextIOWrapper.set_encoding() method:
http://bugs.python.org/issue15216

Victor

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web