On Sep 16, 2009, at 12:39 PM, ~flow wrote:
so: how can i tell python, in a configuration or using a setting in
sitecustomize.py, or similar, to use utf-8 as a default encoding?
[snip Stdout_writer_with_ncrs solution]
This should work:
sys.stdout = io.TextIOWrapper(sys.stdout.buffer,
"~flow" wrote in message
news:643ca91c-b81c-483c-a8af-65c93b593...@r33g2000vbp.googlegroups.com...
On Sep 16, 7:16 am, "Mark Tolonen" wrote:
Setting PYTHONIOENCODING overrides the encoding used for
stdin/stdout/stderr
(See the Python help for details), but if your terminal doesn't support
t
On Sep 16, 7:16 am, "Mark Tolonen" wrote:
> Setting PYTHONIOENCODING overrides the encoding used for stdin/stdout/stderr
> (See the Python help for details), but if your terminal doesn't support the
> encoding that won't help.
thx for these two tips. of course, that was a bit misleading by me to