SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : XML Technologies :

Previous DiscussionNext Discussion
 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

2 Response(s) | Reply

Earlier Replies | Replies 1 to 2 of 2 | Later Replies
RayFrye on Mar 28, 2005 at 2:33:56 AM (# 1)

I do hope I get an email should anyone respond to this question.


MHenke on Mar 29, 2005 at 12:58:38 AM (# 2)
This message has been edited.

Try add the correct (!) character encoding to your request header, could be ISO-8859-1:

xml.setRequestHeader "Content-Type", "application/x-www-form-urlencoded; charset=iso-8859-1"

 

> I do hope I get an email should anyone respond to this question.
You hope in vain. Better you stop by every now and then...  8)


Earlier Replies | Replies 1 to 2 of 2 | Later Replies

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.