Can a handler return UTF-8?

Hamish Lawson <[email protected]>
Newsgroups gmane.comp.web.quixote.user
Message-ID <[email protected]>
The template engine I'm using (Kid) generates a string encoded in
UTF-8. But if my handler function returns that to Quoxote I get a
"UnicodeDecodeError: 'ascii' codec can't decode..." error. Wrapping
the output in "unicode()" cures this, but is there some way I can tell
Quixote to accept UTF-8? Or is it the case that it only accepts
ASCII-encoded strings or Unicode strings?


Hamish Lawson
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.