Re: [Web-SIG] CGI WSGI and Unicode

2009-12-08 Thread And Clover
Manlio Perillo wrote: 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. Yes. As proposed, WSGI 1.1 would require CGI-to-WSGI handler t

Re: [Web-SIG] CGI WSGI and Unicode

2009-12-07 Thread Aaron Watters
--- On Mon, 12/7/09, Graham Dumpleton wrote: > For the record, CGI/WSGI adapters should also protect the > original > stdin/stdout so WSGI application doesn't cause problems by > using > 'print' or do other odd stuff with input. I haven't seen a > single > CGI/WSGI adapter which does it in a wa

Re: [Web-SIG] CGI WSGI and Unicode

2009-12-07 Thread Graham Dumpleton
2009/12/7 Manlio Perillo : > Graham Dumpleton ha scritto: > > Note: I'm sending the entire message to the mailing list. > >> 2009/12/7 Manlio Perillo : >>> Hi. >>> >>> I'm playing with Python 3.x, current revision. >>> >>> I have noted that the data in the os.environ are noe Unicode strings. >>> >>

Re: [Web-SIG] CGI WSGI and Unicode

2009-12-07 Thread Manlio Perillo
Graham Dumpleton ha scritto: Note: I'm sending the entire message to the mailing list. > 2009/12/7 Manlio Perillo : >> 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

[Web-SIG] CGI WSGI and Unicode

2009-12-06 Thread Manlio Perillo
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