At 11:04 AM 3/25/2008 -0500, Ian Bicking wrote: >Phillip J. Eby wrote: >>It says that in versions of Python where 'str is unicode' (i.e. >>Jython, IronPython, and Python 3000), then the specification should >>be read to define "string" as a unicode string whose characters can >>be expressed in latin-1. >>Really, adding support for bytes is the stretch here. In fact, I'd >>almost go so far as to say the heck with bytes support except for >>the response body. I could easily consider headers to be text, instead. > >Latin-1? How is this supposed to work at all?
Latin-1 is the encoding that can allow a unicode string to losslessly encode arbitrary bytes. And that's how these things are handled (or should be handled, per the spec) in Jython and IronPython today. In any case I only said I'd *almost* go so far as to say headers are text. :) _______________________________________________ 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