[xml] xmlTextReader and character encoding



Hi,

 I am using libxml2 and the xmlTextReader to parse the xml content below.

Libxml somehow interprets the content contained in the xml node and uses that information to encode the parsed content resulting in the insertion of the Â character. Is there a way to stop the libxml2 from interpreting this i.e. charset=iso-8859-15?

XML to process :
==============
<SPAN style="FONT-STYLE: normal; FONT-FAMILY: Segoe UI; COLOR: #1a1a1a; FONT-SIZE: 10pt; FONT-WEIGHT: normal; TEXT-DECORATION: none">&nbsp;meta http-equiv="content-type" content="text/html; charset=iso-8859-15" /</SPAN>

Processed XML
=============
<span> meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=iso-8859-15&quot; /</span>


Regards
Shane


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]