[Twisted-web] Nevow error with unicode localization in appserver.py

Paul Reznicek maillists at ivsn.com
Sat Jan 29 02:36:02 MST 2005


OK - thanks for explanation, you're right!
Paul

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.
> 
> James



More information about the Twisted-web mailing list