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

Armin Ronacher armin.ronacher at active-4.com
Tue Sep 22 16:44:15 CEST 2009


Hi,

P.J. Eby schrieb:
> What roundtrips?  If they're operating on unicode, either they're in 
> violation of the spec (in which case, f*** them), or they're already 
> running a decode every time they pull something out of the 
> environ...  and using latin-1 or surrogates is only one encoding call 
> different from what they're doing now.
Currently they do this:

environ['PATH_INFO'].decode('utf-8', 'replace')

in the future they might have to do this:

environ['PATH_INFO'].encode('latin1').decode('utf-8')

That's what I was talking about here.


Regards,
Armin


More information about the Web-SIG mailing list