I'm in the beginning stages of developing an application with Quixote 2.
I'm trying to use Unicode in PTL templates, like this:
def foo[html](self):
get_response().set_charset('utf8')
u'\N{INFINITY}'
Unfortunately, it doesn't work. The error log has a long traceback that
ends with this:
File "/usr/lib/python2.3/site-packages/quixote/http_response.py", line
223, in _encode_chunk
return chunk.encode(self.charset)
TypeError: encode() argument 1 must be string, not htmltext
I know that Unicode support is pretty new in Quixote, so I'm hoping that
this problem just hasn't been noticed yet and will get fixed soon. Am I
correct?