On 22 March 2012 03:20, tonthon <[email protected]> wrote: > Le 22/03/2012 06:18, Graham Dumpleton a écrit : > >> On 21 March 2012 10:46, tonthon<[email protected]> wrote: >>> >>> Hi, >>> I'm using mod_wsgi 3.3-2 under a debian 6 system. >>> When I use this simple wsgi script : >>> """ >>> def application(environ, start_response): >>> print environ >>> start_response('200 OK', [('Content-Type', 'text/plain')]) >>> yield 'Hello World' >>> """ >>> and I go to /testé or /test%C3%A9 >>> I get the following in my log : >>> >>> ... , 'PATH_INFO': '/test\\xc3\\xa9', ... >>> >>> I'd expect : >>> '/test\xc3\xa9' >>> >>> Is there any configuration turnaround or did I missed something ? >> >> From memory that is only a display issue with how stuff output using >> print is shown in Apache error logs. That is, Apache possible escapes >> the backslashes. Try opening a file yourself and write the data out to >> it and see what you get. >> >> Graham > > Ok, I was trusting apache's logs and it seems it led me completely the wrong > way. > Nothing to do with mod_wsgi.
Does that mean you were able to confirm that what I said was correct? It has been a long long time since I first noted the escaping and my memory could be completely wrong that it is what Apache is doing. I guess I could have just gone and wrote a test, but I didn't and it is getting late tonight now as well and too tired and need some sleep instead. :-) Graham -- You received this message because you are subscribed to the Google Groups "modwsgi" group. 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.
