Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Javascript, Msxml2.XMLHTTP - Spanish Characters Problem
Old 11-14-2008, 02:00 PM Javascript, Msxml2.XMLHTTP - Spanish Characters Problem
itHighway's Avatar
Skilled Talker

Posts: 83
Name: Zeeshan Dar
Location: GUJ
Trades: 0
I am having issue in displaying some Spanish characters through javascript. Below is an example of string.
Almería|Barcelona|Córdoba

When I use following command, it works fine
Quote:
var result = "Almería|Barcelona|Córdoba";
alert(result);
But when string is parsed into xmlHttp.responseText it display invalid characters in between the string
Quote:
var result = xmlHttp.responseText;
alert(result);
__________________
Zeeshan Dar
itHighway -
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
itHighway is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 11-14-2008, 03:50 PM Re: Javascript, Msxml2.XMLHTTP - Spanish Characters Problem
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
Check with firefox and something like "livehttpheaders" or "tamper data" what is the charset of the answer.
For accented characters like yours, it should be
Code:
Content-Type: text/html; charset=utf-8
If it's not utf-8, then the browser tries to convert it in another encoding, and it might be your problem.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Reply     « Reply to Javascript, Msxml2.XMLHTTP - Spanish Characters Problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.66499 seconds with 12 queries