Hi,

With Czech republic characters, XercesDOMParser's parse function is throwing an 
exception UTFDataFormatException.

My test program code snippet is:

...
xercesDOMParser* parser = new XercesDOMParser();
xercesc::MemBufInputSource* inputSource = NULL;

std::string mystr = "<test>hello íčty</test>";
try
{
inputSource = new xercesc::MemBufInputSource((const XMLByte*) 
mystr.c_str(),(unsigned int)mystr.length(), "inputsource", false);
        parser->parse(*inputSource);
}
catch (...) {
            cout << "Unexpected Exception \n" ;
            return -1;
        }
...

I am using xerces 3.1 version.

Can you please suggest what could be wrong with this program?

Thank you
Deepthi

Reply via email to