title: How do I set the PYTHONUTF8 environment variable to enable UTF-8 encoding by default in Python?
body: <p>Python 3.7 introduced the PYTHONUTF8 environment variable to enable UTF-8 encoding by default. How do I set this variable from within a Python program? (I can't find it in my operating system's list of environment variables.)</p>