Hi.

I'm playing with Python 3.x, current revision.

I have noted that the data in the os.environ are noe Unicode strings.

In a CGI application, HTTP headers are Unicode strings, and are decoded
using system default encoding.
In a future WSGI application, HTTP headers are Unicode strings, and are
decoded using latin-1 encoding.

In both cases, 'surrogateescape' is used.

Can this cause troubles and incompatibility problems?
I'm interested in special header handling, like cookies, that contain
opaque data.


Thanks  Manlio
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to