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

eryk sun eryksun at gmail.com
Wed Aug 3 15:10:49 EDT 2016


On Wed, Aug 3, 2016 at 3:35 PM, Malcolm Greene <python at 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



More information about the Python-list mailing list