[Twisted-Python] twisted.internet.abstract.FileDescription.write vs unicode

James Y Knight foom at fuhm.net
Tue Jul 13 11:23:25 MDT 2004


On Jul 13, 2004, at 12:50 AM, Jeff Bowden wrote:
> Right, so I worked around this problem by calling .encode('utf8') in 
> all the places where strings go out (after making appropriate changes 
> to the content-encoding).
>
> It wasn't that complicated but it was a PITA and it will be an ongoing 
> maintenance headache.  It would be a lot nicer if the framework dealt 
> with it transparently.
>
> FileDescriptor.write does seem like the wrong place to handle it even 
> though that's where the error message pops out.  Apparently what's 
> needed is another layer on top of the http layer.   Has anyone 
> attempted to write one?

I assume you know about Nevow?

James





More information about the Twisted-Python mailing list