Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: How to configure MSXML2::IXMLDOMDocument to emit UTF8 entities instead of UTF16 characters and indent >Thread Next - Re: How to configure MSXML2::IXMLDOMDocument to emit UTF8 entities instead of UTF16 characters and indent Re: How to configure MSXML2::IXMLDOMDocument to emit UTF8 entities instead of UTF16 characters and indentTo: NULL Date: 12/30/2008 10:00:00 PM "Siegfried Heintze" <siegfried@h...> wrote in message news:OgQn9GsaJHA.5440@T...... > The XSLT command is > > <xsl:output encoding="US-ASCII"/> > > How do I do this with the MSXML2::IXMLDOMDocument? > Do you recall my describing this to you earlier... oDOM.insertBefore oDOM.createProcessingInstruction("xml", "version=""1.0"" encoding=""UTF-8"""), oDOM.documentElement Its in VBScript but sure you can convert it. With the XML declare in place the .save method will encode the file according to the encoding attribute in the xml declare. IOW use the above code (converted to C++) but with encoding="US-ASCII". -- Anthony Jones - MVP ASP/ASP.NET | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
