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


Groups > comp.lang.python > #112300

Re: print() function with encoding= and errors= parameters?

From eryk sun <eryksun@gmail.com>
Newsgroups comp.lang.python
Subject Re: print() function with encoding= and errors= parameters?
Date 2016-08-03 19:10 +0000
Message-ID <mailman.152.1470251493.6033.python-list@python.org> (permalink)
References <1470227371.397715.684773553.140807A6@webmail.messagingengine.com> <1470233112.2667238.684861393.67022A98@webmail.messagingengine.com> <nnt1fv$9en$1@blaine.gmane.org> <1470238535.436743.684955321.4B7A4C81@webmail.messagingengine.com> <CACL+1auHYrLRJ6q2gBvG9ptAmByVyU775jeUxR=5MpB6cKg5EA@mail.gmail.com>

Show all headers | View raw


On Wed, Aug 3, 2016 at 3:35 PM, Malcolm Greene <python@bdurham.com> wrote:
> But under Windows, the stdout is workstation specific and *never* UTF-8. So the
> occasional non-ASCII string trips up our diagnostic output when tested under
> Windows.

You could use win_unicode_console enabled in sitecustomize or usercustomize.

https://pypi.python.org/pypi/win_unicode_console

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: print() function with encoding= and errors= parameters? eryk sun <eryksun@gmail.com> - 2016-08-03 19:10 +0000

csiph-web