unicode html

Damjan gdamjan at gmail.com
Mon Jul 17 18:02:53 EDT 2006


> Hi, I've found lots of material on the net about unicode html
> conversions, but still i'm having many problems converting unicode
> characters to html entities. Is there any available function to solve
> this issue?
> As an example I would like to do this kind of conversion:
> \uc3B4 => ô

'&#%d;' % ord(u'\u0430')

or

'&#x%x;' % ord(u'\u0430')

> for all available html entities.


-- 
damjan



More information about the Python-list mailing list