> This writes non unicode, which is incorrect in general. I think
> Python:
> unicode(self.out.write(cgi.escape(s.encode("utf8"))),'utf-8')
>
> must be here.
Oh, I'm sorry, Python:
self.out.write(unicode(cgi.escape(s.encode("utf8")),'utf8'))
is correct. And it works correctly with all my examples.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"mwlib" 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/mwlib?hl=en
-~----------~----~----~----~------~----~------~--~---