file.write() of non-ASCII characters differs in Interpreted Python than in script run

Chris Angelico rosuav at gmail.com
Wed Aug 26 19:15:17 EDT 2015


On Thu, Aug 27, 2015 at 5:23 AM, RAH <rene.heymans at gmail.com> wrote:
> Nevertheless I can't figure out why calling Python in the shell (interactive mode) or letting mod_wsgi start the same Python provide two different environments. I guess I must investigate that part because mod_wsgi gets to Python in what I would call 'auto-discovery' mode. Obviously it gets the same version 3.4.0 but maybe it picks up some 2.7 configuration files because the installation of 3.4 next to 2.7 might not be perfect. I'll look at it.
>

Apache itself most likely is running with LANG=C and other
environmental changes. It's not a Python-specific thing.

ChrisA



More information about the Python-list mailing list