Non-unicode file names
Thomas Jollans
tjol at tjol.eu
Thu Aug 9 04:10:32 EDT 2018
On 09/08/18 05:13, INADA Naoki wrote:
> Please use Python 3.7.
>
> Python 3.7 has several improvements on this area.
Thanks! Darkly remembering something about UTF-8 mode, I suspected it
might...
>
> * When PEP 538 or 540 is used, default error handler for stdio is
> surrogateescape
> * You can sys.stdout.reconfigure(errors='surrogateescape')
>
> For Python 3.6, I think best way to allow arbitrary bytes on stdout is using
> `PYTHONIOENCODING=utf-8:surrogateescape` environment variable.
More information about the Python-list
mailing list