This should be fixed in HTTPResponse, but to work around it, please try get_response().set_charset(str('utf8')) or, call set_charset() outside of a template. On Feb 25, 2005, at 11:09 AM, Leif K-Brooks wrote: > 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? > _______________________________________________ > Quixote-users mailing list > Quixote-users@mems-exchange.org > http://mail.mems-exchange.org/mailman/listinfo/quixote-users