Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Specifiing codepage iso8859 ou UTF-8 instead of UTF-16 [Thread Next] Re: Specifiing codepage iso8859 ou UTF-8 instead of UTF-16To: 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/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
