[Python-ideas] Unicode stdin/stdout

Victor Stinner victor.stinner at gmail.com
Mon Nov 18 10:25:32 EST 2013


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



More information about the Python-list mailing list