[Web-SIG] Request for Comments on upcoming WSGI Changes
Alan Kennedy
alan at xhaus.com
Tue Sep 22 12:30:34 CEST 2009
[Armin]
> No, they know the character sets.
Hmmm, define "know" ;-)
[Armin]
> 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.
Alan.
More information about the Web-SIG
mailing list