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

2007-05-10 Thread Tim Golden
ldng wrote: > On 10 mai, 11:03, Tim Golden <[EMAIL PROTECTED]> wrote: >> Probably worth having a look at this: >> >>http://effbot.org/zone/unicode-convert.htm > > Great ! You made my day :-) > > Thanks. That's all right, but it's the effbot you need to thank. (Hope Fredrik's reading this).

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

2007-05-10 Thread ldng
On 10 mai, 11:03, Tim Golden <[EMAIL PROTECTED]> wrote: > > Probably worth having a look at this: > >http://effbot.org/zone/unicode-convert.htm Great ! You made my day :-) Thanks. -- http://mail.python.org/mailman/listinfo/python-list

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

2007-05-10 Thread Tim Golden
ldng wrote: > 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