On Aug 18, 2005, at 11:06 AM, Hamish Lawson wrote:
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?
Yes, it only accepts unicode or ASCII (unless your response charset is iso-8859-1). You can decode your string to unicode or replace HTTPResponse._encode_chunk() if you want different behavior. _______________________________________________ Quixote-users mailing list [email protected] http://mail.mems-exchange.org/mailman/listinfo/quixote-users
