You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xerces.apache.org by Indrajit Chaudhuri <In...@catsglobal.co.in> on 2000/09/22 09:12:04 UTC
Problem with languague encoding in Xerces C Parser 1.2.0a
Hi,
I was trying to parse a XML file with encoding UTF-8 and print it to a
file with encoding UTF-16[BL]E using the DOMPrint Example given with
the sample. I am using NT version of Xerces C Parser 1.2.0. But the
output is not a valid a XML. I feel that some portion of the data are
truncated out.
For example my input file was
<?xml version='1.0' encoding="utf-8" ?>
<tag1>
<tag11 attr1="id" >
<tag111> abc </tag111>
</tag11>
</tag1>
I got the following output with UTF-16LE
<1"U"
<t>
<t a="i">
<t> <t>
<t>
<t>
With UTF-16LE encoding, I am not at all getting a output.
Could anybody put some light on this matter.
Regards,
Indrajit