[Web-SIG] Request for Comments on upcoming WSGI Changes

Armin Ronacher armin.ronacher at active-4.com
Tue Sep 22 17:45:19 CEST 2009


Hi,

And Clover schrieb:
> This is absolutely the opposite of what I want as an application author. 
> I want to hand out my WSGI application that uses UTF-8 and know that 
> wherever it is deployed the non-ASCII characters will go through without 
> getting mangled.
I could not agree more.

Probably the best way is indeed using native strings for each Python
version, where native strings are unicode the server should latin1
decode it and SCRIPT_NAME / PATH_INFO will be called
wsgi.raw_script_name and wsgi.raw_path_info and be properly quoted.


Regards,
Armin


More information about the Web-SIG mailing list