Re: unicode html




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:

s =unicode('\xe7', encoding='latin-1')
s
u'\xe7'
print s
ç
print s.encode('ascii','xmlcharrefreplace')
ç


http://wiki.python.org/moin/PyTextile


hth

Gerard

.



Relevant Pages

  • Re: Tiburón and FastCode
    ... conversions are avoided, increasing performance significantly. ... Those benefit from the Unicode switchover. ... You could say the same for UTF-8, ... characters up to 6 bytes per logical character. ...
    (borland.public.delphi.language.basm)
  • Re: Reasons for R6RS opposition
    ... operations translate characters from 'real-world' data sources into ... etc) associated with unicode operations while ... codepoints representing canonically equal characters or strings" ... conversions as closely tied to I/O as possible. ...
    (comp.lang.scheme)
  • unicode html
    ... conversions, but still i'm having many problems converting unicode ... characters to html entities. ... for all available html entities. ...
    (comp.lang.python)
  • Re: unicode html
    ... conversions, but still i'm having many problems converting unicode ... characters to html entities. ...
    (comp.lang.python)
  • Re: CString + unicode
    ... in the program's data files are in unicode. ... regular conversions from what the user enters in dialogues. ... through and replaced char by CHAR WCHAR or TCHAR according to what I wanted ... I though of getting rid of them all in favour of TCHAR *, const TCHAR * etc, ...
    (microsoft.public.vc.mfc)