> I found 'result' must convert to a unicode obj here. No. There is no need like that. If the result is unicode, then it is converted to utf-8. If it is a regular string, then it is not altered.
> If I remove > utils.utf8() here. My chinese-utf8 template will output a blank page > without content. Is there any change that you are doing print instead of return? > If you want return a raw-binary data to browser, such as a CAPTCHA > image, you should try 'yield' . I found it will skip string/unicode... > validator. > > Anand, Is 'yield' the official way to handle raw-binary data? No. In fact, it is a bug and needs to be fixed. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/webpy?hl=en -~----------~----~----~----~------~----~------~--~---
