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