Hi Deron,
thank you for your answer.
You are correct.
While every other combination (interpreter, cherrypy etc)
returns UTF-8, the apache+mod_wsgi returns: ANSI_X3.4-1968
(which, in fact, I haven't ever seen it again !!)
So it must be an apache config problem?
And how can I change it?
(don't tell me I have to compile from sources :-( )
Best regards,
Andreas
Τη Κυριακή, 20 Μαΐου 2012 8:41:36 μ.μ. UTC+3, ο χρήστης Deron Meranda
έγραψε:
>
> What does sys.getfilesystemencoding() return? Both from the python
> interactive command line, and from within your web app.
>
> Under most (modern) Linux's it should return 'UTF-8'. However if it
> returns 'ascii' (which is most likely the fault of your Apache config,
> not modwsgi), then you'll have to explicitly do the encoding, e.g.,
>
> os.mkdir( newDir.encode('UTF-8') )
>
>
> Under my setup (Fedora linux) running in modwsgi seems just fine with
> Unicode path names.
> --
> Deron Meranda
> http://deron.meranda.us/
>
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/modwsgi/-/RMQJQnGcoSAJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.