transform.html_encode() and unicode strings

"Michael Lorenat" <[email protected]>
Newsgroups gmane.comp.python.spyce.general
Message-ID <[email protected]>
If you use the html_encode() method to transform strings, it seems to treat
a string of Unicode characters as ascii characters and encodes them into
html safe characters.

 

What is the recommended strategy for working with UTF-8 encoding in browser
and still be able to encode the most common html characters (like <, >, &)
into safe form for browser without affecting the bytes that represent the
Unicode characters?

 

Thanks for any pointers around these issues,

 

-Michael Lorenat
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.