On Tue, 9 Feb 2021 at 17:32, Inada Naoki <songofacandy@gmail.com> wrote:
On Tue, Feb 9, 2021 at 7:42 PM M.-A. Lemburg <mal@egenix.com> wrote:
Here's a good blog post about setting env vars on Windows:
https://www.dowdandassociates.com/blog/content/howto-set-an-environment-vari...
It's not really much harder than on Unix platforms.
But it affects to all Python installs. Can teachers recommend to set PYTHONUTF8 environment variable for students?
Why is that an issue? In the first instance, do the sorts of "beginner" we're discussing here have multiple python installs? Would they need per-interpreter configuration of UTF-8 mode? Honestly, I find it far harder to configure environment variables on Unix (I have to do it per *shell*, for a start). Windows users don't often set environment variables, because Windows-native applications often use other means to determine their configuration - but it's not because the user *can't* set environment variables, or because it's "too hard".
The only catch is that Windows users will often not know about such env vars or how to use them, because on Windows you typically set up your configuration via the application and using the registry.
Perhaps we could have both: an env var to enable UTF-8 mode and a registry key set by the installer.
I don't want to recommend env vars and registry for conda and portable Python users...
I'm not sure what you mean here. Why is this different from (say) PYTHONPATH? How would conda and portable python users configure PYTHONPATH? Why is UTF-8 mode any different? Paul