Issue with UTF8Toisolat1

Stéphane Michaut <[email protected]>
Newsgroups gmane.comp.gnome.lib.xml.general
Message-ID <VI1PR0102MB271726C3A04AAECF3780465EDF1B0@VI1PR0102MB2717.eurprd01.prod.exchangelabs.com>
Hi,

I try to read an XML file which contains properly UTF-8 formatted character from French accented character (&#xC8; for 'È').
Since I used isolat1ToUTF8 to write this character to xml file, I though I simply have to use UTF8Toisolat1 when reading the file in order to retrieve my French character 'È'.

But it doesn't work well : I am getting a \310 char when I display the string out of  UTF8Toisolat1 (all non special characters are well retrieved yet).

I read the XML file using
  xmlTextReaderPrt reader = xmlReaderForFile(szXMLFileName, "UTF-8", 0);

and parsing it with
  nRetLect = xmlTextReaderRead(reader);

Since the internal encoding in Libxml is UTF8, all I have to do is to convert what I get from the reader in ISO-8859-1 and that's it!
Am should do something wrong, but what ? (Libxml version 2.6.7 on AIX)

Any help appreciated,

Stéphane

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.