Hi there,
I want to create a xml-file using msxml2.domdocument encodesd in UTF-8
Almost everything is fine but two things do not work as expected.
I start with:
oxml = createobject("msxml2.domdocument")
opi= oXML.createProcessingInstruction('xml','version="1.0" encoding="UTF-8"')
opi= x.createProcessingInstruction('xml','version="1.0"' + ' encoding="UTF-8"')
oXML.appendChild( oPI )
But it makes no difference what I use, the encoding doesn't show up in the processing instruction.
What am I doing wrong here?
I assume the second problem is a follow up. When I try to save the file,
I get an error telling me, that some chars cannot be saved in ISO-8859-Mode"
By now I helped myself by saving the file with strtofile(oXML.xml, cOutput)
but I would prefer the save-method to work
Best regards
Thomas