Hi all!
When running the samples in the Xerces-C++ library, namely SAX2Count (with
validation), I get the following error:
Warning at file /home/rsousa/XML_Schema.xsd, line 1, char 40
Message: Encoding (UTF-16, from XMLDecl or manually set) contradicts the
auto-sensed encoding, ignoring it
In XML_Schema.xsd, the first line is:
<?xml version="1.0" encoding="UTF-16"?>
If I replace it with UTF-8, no error occurs. But I really need UTF-16...
Does anyone know why does this happen? Shouldn't Xerces-C++ automatically use
UTF-16 encoding?
Thanks in advance,
Rafael Sousa