Re: unicode html
- From: "Gerard Flanagan" <grflanagan@xxxxxxxxxxx>
- Date: 17 Jul 2006 08:07:36 -0700
lorenzo.viscanti@xxxxxxxxx wrote:
X-No-Archive: yes
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 => ô
for all available html entities.
thanks,
lorenzo
no expertise with unicode issues but using 'pytextile' at the minute
which converts non-ascii to (numeric) html entities. It does something
like:
u'\xe7's =unicode('\xe7', encoding='latin-1')
s
çprint s
çprint s.encode('ascii','xmlcharrefreplace')
http://wiki.python.org/moin/PyTextile
hth
Gerard
.
- References:
- unicode html
- From: lorenzo . viscanti
- unicode html
- Prev by Date: Dr. Dobb's Python-URL! - weekly Python news and links (Jul 17)
- Next by Date: Re: how to know if socket is still connected
- Previous by thread: unicode html
- Next by thread: Re: unicode html
- Index(es):
Relevant Pages
|