Link to home
Create AccountLog in
Avatar of PeterTrefren
PeterTrefrenFlag for United States of America

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.
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

What encoding are you using?
In lieu of encoding='UTF-8' try encoding='ISO-8859-1'
Avatar of PeterTrefren

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 
ASKER CERTIFIED SOLUTION
Avatar of Dana Seaman
Dana Seaman
Flag of Brazil image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
That fixed the problem. Thanks!