OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   MXXMLWriter and encoding

[ 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?

My code is like this but it doesn't work:
IMXWriterPtr pXMLWriter;		
HRESULT hr = pXMLWriter.CreateInstance(__uuidof(MSXML2::MXXMLWriter));
ISAXContentHandlerPtr pContentHandler;

pXMLWriter->put_encoding( CComBSTR("UTF-8") );


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS