I am receiving a EULA from a server. When I get it and look at what I got, the text has been changed. Some of the EULA is in French which has words with a grave accent (è) encoded, but when I get it, the letters are changed to a question mark(?). Example: pr?ntes should be présentes. Any clues as to why this is happening would be appreciated.
I am coding this in FoxPro. I am creating the xml manually before "calling" the server to request data. Here is similar code I am using to POST and receive data back from the server:
lcXML = [<?xml version="1.0" encoding = "ISO-8859-1"?>]
lcXML = lcXML + CHR(10) + [<Request>]
lcXML = lcXML + CHR(10) + [<TransactionReference>]
etc, etc, etc...
lcXML = lcXML + CHR(10) + [</TransactionReference>]
lcXML = lcXML + CHR(10) + [</Request>]
oHTTP = CREATEOBJECT("Microsoft.XMLHTTP"
oHTTP.Open("POST", {Server Address} ,.F.)
oHTTP.setRequestHeader("Content-Type","text/xml"
oHTTP.Send(lcXML)
orXML = oHTTP.responseText
Am I doing request correctly? If so, what should I do to get the exact text that the server is sending me?
Thanks in advance for any help...
Chris
I am coding this in FoxPro. I am creating the xml manually before "calling" the server to request data. Here is similar code I am using to POST and receive data back from the server:
lcXML = [<?xml version="1.0" encoding = "ISO-8859-1"?>]
lcXML = lcXML + CHR(10) + [<Request>]
lcXML = lcXML + CHR(10) + [<TransactionReference>]
etc, etc, etc...
lcXML = lcXML + CHR(10) + [</TransactionReference>]
lcXML = lcXML + CHR(10) + [</Request>]
oHTTP = CREATEOBJECT("Microsoft.XMLHTTP"
oHTTP.Open("POST", {Server Address} ,.F.)
oHTTP.setRequestHeader("Content-Type","text/xml"
oHTTP.Send(lcXML)
orXML = oHTTP.responseText
Am I doing request correctly? If so, what should I do to get the exact text that the server is sending me?
Thanks in advance for any help...
Chris