Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Specifiing codepage iso8859 ou UTF-8 instead of UTF-16

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 5/13/2009 6:24:00 PM
rodv wrote:
> Hello again, i am trying to generate an XML file using special encodings
> 
> I use :
> 
> Dim goXMLOutPutRegUninstallDoc As New MSXML2.DOMDocument
> 
> Dim opi As IXMLDOMProcessingInstruction
> 
> Set opi = goXMLOutPutRegUninstallDoc.createProcessingInstruction("xml", 
> "version=""1.0"" encoding=""UTF-8""")
> goXMLOutPutRegUninstallDoc.appendChild (opi)
> 
> But it does not work in the final document, any ideas ?

What does not work? You need to provide much more details for us to be 
able to first understand what exactly you are doing and then help you 
solve the problem you have.
The code you have posted creates an MSXML DOMDocument, creates a 
processing instruction for <?xml version="1.0" encoding="UTF-8"?> and 
inserts it into the document.
What are you doing with that document then? I guess you insert some 
elements in the document and probably save it later but don't make us 
guess, explain exactly what you do and where things go wrong in your 
view. If you want an UTF-8 encoded document and don't get one then at 
least explain how you look at the final document. Is the XML declaration 
with encoding="UTF-8" not there? Are characters not showing up as you 
expect? Which ones exactly? How exactly do you look at the XML document?



-- 

	Martin Honnen --- MVP XML
	http://msmvps.com/blogs/martin_honnen/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent