Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59879
| References | <5286054F.6000707@chamonix.reportlab.co.uk> <1384539385.17784.47988289.02AE655C@webmail.messagingengine.com> <5289FE6C.7030007@chamonix.reportlab.co.uk> <528A092D.4060408@chamonix.reportlab.co.uk> |
|---|---|
| From | Victor Stinner <victor.stinner@gmail.com> |
| Date | 2013-11-18 16:25 +0100 |
| Subject | Re: [Python-ideas] Unicode stdin/stdout |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2850.1384788355.18130.python-list@python.org> (permalink) |
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: [Python-ideas] Unicode stdin/stdout Victor Stinner <victor.stinner@gmail.com> - 2013-11-18 16:25 +0100
csiph-web