This sounds like one of the problems that PEP 538 in Python 3.7 is
designed to solve:
https://docs.python.org/3.7/whatsnew/3.7.html
"""
An ongoing challenge within the Python 3 series has been determining a
sensible default strategy for handling the “7-bit ASCII” text encoding
assumption currently implied by the use of the default C locale on
non-Windows platforms.
PEP 538 updates the default interpreter command line interface to
automatically coerce that locale to an available UTF-8 based locale as
described in the documentation of the new PYTHONCOERCECLOCALE
environment variable. Automatically setting LC_CTYPE this way means
that both the core interpreter and locale-aware C extensions (such as
readline) will assume the use of UTF-8 as the default text encoding,
rather than ASCII.
"""
I have never had this problem with Supervisord, but maybe it's because
I live in the US so the default is my locale.
I do get occasional problems with requests that have non-ASCII (or
non-properly encoded) characters in the URL that raise Internal Server
Error when the URL is parsed, but those are all illegitimate requests
so I ignore them. It happens with one of my Pylons applications; it
hasn't happened in Pyramid. But the Pylons application is the most
widely used and has the most external links to it so it's more likely
that bots would find it and throw trash at it or send URLs in foreign
languages to it.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/pylons-discuss/8e1a6f1b-b17d-4502-bca0-65f01bbb68ae%40googlegroups.com.
> For more options, visit
https://groups.google.com/d/optout.
--
Mike Orr <
slugg...@gmail.com>