minidom

Bernhard Trummer bernhard.trummer at divis.at
Fri Sep 14 06:34:37 EDT 2001


thanxs.

getText(point.childNodes).encode('iso8859-1')
works fine.

... but unicode decoding will not be supportet
(error message: TypeError: decoding Unicode is not supported)

Bernhard


> ---
> def handlePoint(point):
>     print "<li>%s</li>" % \
>     unicode(getText(point.childNodes), 'iso8859-1').encode('iso8859-1')
> ---
>
> as you see, the same thing is available for translation from unicode
string
> to latin1 string.
>
> Hope it helps
>
> --
> Sylvain Thenault
>
> LOGILAB
>





More information about the Python-list mailing list