PeterTrefren
asked on
output spanish characters using IXMLDOMAttribute
I'm using Visual Basic 6.0 and I'm trying to output Spanish characters for an XML document using IXMLDOMAttribute. When characters with accent marks are written I get garbage. I'd like to know how to write these characters correctly.
ASKER
I'm not really sure what encoding I'm using. How can I tell? I'm assuming there is a property that I need to set in the object that I'm using to output the XML file.
Open the Xml file with Notepad and look at first line.
It should be something like:
<?xml version="1.0" encoding="UTF-8"?>
See http://www.w3schools.com/DOM/prop_document_xmlencoding.asp
It should be something like:
<?xml version="1.0" encoding="UTF-8"?>
See http://www.w3schools.com/DOM/prop_document_xmlencoding.asp
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
That fixed the problem. Thanks!
In lieu of encoding='UTF-8' try encoding='ISO-8859-1'