[
Lists Home |
Date Index |
Thread Index
]
- To: <xml-dev@lists.xml.org>
- Subject: MXXMLWriter and encoding
- From: "Enrico Prosperi" <enrico.prosperi@address.it>
- Date: Wed, 6 Nov 2002 18:40:31 +0100
- Thread-index: AcKFnyf9ln1Edt0wT32nkmHwPnHrlQAGoOGg
- Thread-topic: [xml-dev] [final reminder] Cocoon GetTogether (19 Nov) registration closing
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") );
....
|