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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

is XMLHTTP ok with special characters?

Status
Not open for further replies.

R3D3

Programmer
May 1, 2002
34
FR
I have a problem with XMLHTTP
It appears to be unable to handle 'special characters' such as french characters.
I've tried to specify various CharSets in the setRequestHeader "Content-Type" but it doesn't seem to make any difference.
I dont have the problem on every site I access but I do get the same problem/same sites when issuing the command from VB so I suspect it is an issue with the type of Site.
Any Ideas?
 
What is the actual problem? Getting the response to the address into a valriable, writing it to the screen, ?

I haven't seen this one before, Id be interested to see what kind of error it is having.

-Tarwn

[sub]01000111 01101111 01110100 00100000 01000011 01101111 01100110 01100110 01100101 01100101 00111111[/sub]
The never-completed website:
 
Take the following example...

sURL = "[]=&subtype[]=&min_prix=0&max_prix=10000000&type_prix=EUR&departement=83&surface=&ville=&room_type=piece&rooms[]=0,1,2,3,4,5,6,7,8 &postcode=&arrondisiment=&offset=0"


set oText = Server.CreateObject("MSXML2.XMLHTTP")
oText.open "GET", sURL, False
oText.setRequestHeader "Content-Type", "text/html; charset=ISO-8859-1"
oText.send
sText = oText.responseText

If you look in sText variable the words like

pièces,
m² ,
détails

are distorted.
I've tried speaking French to them but my french is worse than my programming:(

Merci
 
Nobody any ideas?
Je ne crois pas!

The must be some Canadians who have experienced this problem
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top