I've done this:

DOMWriter *dw = impl->createDOMWriter();
encNameStr = XMLString::transcode("UTF-8");
dw->setEncoding(encNameStr);
XMLCh* xcXML = dw->writeToString(*rootNode);
char *cXML = XMLString::transcode(xcXML);
delete dw;

but there is "UTF-16" in first line of my document, and there should be
"UTF-8" because document was already UTF-8 encoded:

<?xml version="1.0" encoding="UTF-16" standalone="no" ?>

How can I replace "UTF-16" with "UTF-8" here? Because, when I save
output chars in file and replace it (16 with 8) in notepad, everything
works fine.

Thank you,
Milan



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to