[Web-SIG] Request for Comments on upcoming WSGI Changes
alan at xhaus.com
Tue Sep 22 12:30:34 CEST 2009
> No, they know the character sets.
Hmmm, define "know" ;-)
> You tell them what character set you
> want to use. For example you can specify "utf-8", and they will
> decode/encode from/to utf-8. But there is no way for the application to
> send information to the server before they are invoked to tell the
> server what encoding they want to use.
I see this as being the same as Graham's suggested approach of a
per-server configurable charset, which is then stored in the WSGI
dictionary, so that applications that have problems, i.e. that detect
mojibake in the unicode SCRIPT_NAME or PATH_INFO, can attempt to undo
the faulty decoding by the server.
More information about the Web-SIG