XML Get & Character not being sent properly
Ok, here the story.
Response.Buffer = True
Set xml = Server.CreateObject("Microsoft.XMLHTTP")
xmlURL = "http://www.somepointer..."
xmlType = "Get"
xml.Open xmlType, xmlURL, False
xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xml.Send
xmlStatus = "Server Status: " & xml.Status & " - " & xml.StatusText
ResponseHeaders= xml.getAllResponseHeaders()
strHTML= xml.responseText
The HTML contains "Crème XX", the Crème is
truncated to "Cr ? XX" when sent to the browser.
I am unable to modify the "?" before sending to the browser.
I suspect the browser IE finds some character it doesn't like
and changes it as described above.
I did a CreateTextFile and streamed the output to a file to see what the
character was that screwed up my output HTML.
I can write all characters to the created text file, but when the "è" is sent to the file, the page crashes with "Invalid procedure call or argument".
I have already burned whatever profit there might be in this job chasing this problem. It is no longer a matter of a professional fixing a problem, it is now personal.
Any help would be appreciated. Thanks in advance for your time.
Started By RayFrye on Mar 28, 2005 at 2:31:34 AM |