Hi,
 
We are using libxml version 2.0.0 on Red Hat Linux Enterprise version 2.4.9.
 
I have an xml file with the first line specifying the encoding scheme :
 
         <?xml version="1.0" encoding="LATIN1" ?>
 
and one of the text node in the file is the following :
 
         <FIRSTNAME>FRAN&#199;OIS</FIRSTNAME>
 
 
After the document has been parsed via xmlParseFile( ) and xmlDocGetRootElement( ), a call to xmlNodeGetContent( ) returns "FRANÃOIS" (a strlen of 9) instead of "FRANÇOIS".
 
I put in a call to xmlDebugDumpDocument( ) and it shows "FRAN#C3#87OIS".
 
On the other hand, if I run xmllint from the command line to check the file, "FRANÇOIS" was properly returned and displayed.
 
Am I missing something in the C program to convert the encoded sequence to the origianl character ?
 
 
Thanks.
 
 
Regards,
 
Fred
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml@gnome.org
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to