How to convert Unicode string to raw string escaped with HTML Entities

14 views
Skip to first unread message

ldng

unread,
May 10, 2007, 4:50:27 AM5/10/07
to python
Hi,

I'm looking for a way to convert en unicode string encoded in UTF-8 to
a raw string escaped with HTML Entities. I can't seem to find an easy
way to do it.

Quote from urllib will only work on ascii (which kind of defeat the
purpose imho) and escape from cgi doesn't seems to do anything with my
string.

Any suggestion ?

Reply all
Reply to author
Forward
0 new messages