I have a encoding problem (Swedish characters).In an Wequerysave agent I’m sending data to another website using XMLHTTP.
I create my XML using DOMdocument and sending the object along with XMLHTTP and when receiving the data is stripped from my swedish characters. The server I’m sending to is out of my control. If the script is sent from a .vbs-file it works fine and with no encoding problems.
Here’s a snippet:
Set XMLdoc = createobject(“msxml2.domdocument”)
Set pInstr = xmlDoc.Createprocessinginstruction(“xml”, |version=“1.0” encoding=“ISO-8859-1”|)
Call XMLdoc.appendChild(pInstr)
…processing of xmldoc …
'Sending
Set xmlhttp = createobject(“Microsoft.XMLHTTP”)
Call xmlhttp.open (“POST”, , False)
Call xmlhttp.send(xmldoc)
…
The status returned is 200 and the result of the post is mailed back to me and there I see the encoding problem.
There must be something wrong in Notes when using these kind of objects??
BRGDS
/M