[Home] [By Thread] [By Date] [Recent Entries]
I would like to have an XML file with UTF-8 encode:
<?xml version="1.0" encoding="UTF-8"?>
...
When I use MXXMLWriter, the file XML is <?xml version="1.0" encoding="UTF-16"?>
Can I encode the file with UTF-8 format?
Thanks,
Flavio
My code is like this but it doesn't work:
....
IMXWriterPtr pXMLWriter;
HRESULT hr = pXMLWriter.CreateInstance(__uuidof(MSXML2::MXXMLWriter));
ISAXContentHandlerPtr pContentHandler;
pContentHandler=pXMLWriter;
pXMLWriter->put_encoding( CComBSTR("UTF-8") );
....
|

Cart



