[Twisted-web] Nevow error with unicode localization
maillists at ivsn.com
Sat Jan 29 02:36:02 MST 2005
OK - thanks for explanation, you're right!
James Y Knight wrote:
> No. HTTP talks bytes, not characters. If you use the nevow rendering
> stuff, you get automatic encoding of characters into bytes via the UTF-8
> encoding, but if you're going to override renderHTTP and return your own
> data, it should be a byte string.
> appserver is really part of the HTTP server, not nevow (even though it
> is in the nevow package at the moment), and thus ought not know or care
> anything about what kind of data you are sending. It could be html in
> UTF-8, html in ISO8859-1, jpeg images, anything.
More information about the Twisted-web