exhaustive mapping from html entities to unicode ?

Steve Holden sholden at holdenweb.com
Fri Mar 7 08:58:49 EST 2003


"shagshag13" <shagshag13 at yahoo.fr> wrote in message
news:3e68880a$0$26879$626a54ce at news.free.fr...
> hello,
>
> does anyone have compiled an exhaustive mapping from html entities (as
> entity name or entity number) to unicode ?
> (before doing it myself...)
>
> i'm looking for something which would contain :
> .... mapping['€'] : u'\u20ac', mapping['&#8364'] : u'\u20ac' ....
>
> thanks in advance,
>

import htmlentitydefs

It's a start, anyway.

regards
--
Steve Holden                                  http://www.holdenweb.com/
Python Web Programming                 http://pydish.holdenweb.com/pwp/
Register for PyCon now!            http://www.python.org/pycon/reg.html







More information about the Python-list mailing list