Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 14th, 2008, 02:04 PM
Friend of Wrox
Join Date: Oct 2004
Location: , , .
Posts: 198
Thanks: 2
Thanked 0 Times in 0 Posts
Send a message via MSN to itHighway
Default Javascript, Msxml2.XMLHTTP - Spanish Characters Pr

I am having issue in displaying some Spanish characters through javascript. Below is an example of string.


When I use following command, it works fine
var result = "Almería|Barcelona|Córdoba";

But when string is parsed into xmlHttp.responseText it display invalid characters in between the string

var result = xmlHttp.responseText;
Reply With Quote
  #2 (permalink)  
Old November 14th, 2008, 09:20 PM
Friend of Wrox
Join Date: Jun 2008
Location: Snohomish, WA, USA
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts

You need to specify the ENCODING of the xmlHTTP object *before* you do the open and send.

You need to make that encoding match the encoding used by the site that is producing the text. So you may ALSO need to change that encoding, if you have control of it.

The safest thing to use would be UTF-8, but if you don't have control of the other site you'll have to adapt to what they are sending.
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript to detect characters sbkrohit Javascript 2 September 8th, 2008 10:09 AM
MSXML2.XMLHTTP Caching? spraguey Classic ASP XML 2 September 19th, 2006 01:02 PM
VBSCRIPT in between JAVASCRIPT and an INPUT TAG Pr shookim Javascript 2 February 13th, 2006 10:48 AM
MSXML2.XMLHTTP Caching? spraguey Javascript 2 December 6th, 2004 09:20 AM
Microsoft.XMLHTTP and javascript under IE6 jeff1974 Javascript 3 October 24th, 2004 03:27 AM

All times are GMT -4. The time now is 04:37 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.