[XML-SIG] string encoding translater
PLU Michel CNET/DSM/LAN
michel.plu@cnet.francetelecom.fr
Thu, 5 Aug 1999 15:14:34 +0200
here is my problem
i want to parse an IS0-8859-1 ( iso latin 1) encoded xml file .
But when i parse it whith the python sax parser ( saxexts.make_parser) all
strings in the resulted dom tree ( attributes value or nodes data) are
store as utf-8 ( unicode) encoded string.
as example for an xml line as
<term name="Matières" fatherId="root"/>
produce a node where the value of attribute name is : Matières
is there a way in python to translate the utf-8 encode string to orginal
iso-8859
thanks for answers
Michel