[Twisted-Python] twisted.internet.abstract.FileDescription.write vs unicode
Jeff Bowden
jlb at houseofdistraction.com
Tue Jul 13 16:00:35 EDT 2004
James Y Knight wrote:
> 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?
>
I do and I'm using it for my client web frontend, but it's not
appropriate for the backend part of my application. Does it handle
unicode transparently?
More information about the Twisted-Python
mailing list