Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I select the encoding I want using XMLDOM in VFP 9?

Status
Not open for further replies.

lfuh666

Programmer
Nov 13, 2006
2
MX
Hi evryone, I've been working with a Web Service Application in VFP 9 and I made an XML file but there are some annoying characters (like 'à', or 'ñ'), now I know that I may enter the encoding ISO-8859-1 in order to avoid any problem with the browser, but I'm making the XML via Microsoft XMLDOM and I want to know which parameter is the one I should give the value 'ISO-8859-1' to.
 
>I'm making the XML via Microsoft XMLDOM
In that case, you should create the prolog with createProcessingInstruction method, figuratively in vbs like this.
[tt]
set x=createobject("msxml2.domdocument")
set opi=x.createProcessingInstruction("xml","version=""1.0"" encoding=""ISO-8859-1""")
x.appendchild opi
'etc etc ...
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top