Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 14th, 2008, 02:04 PM
Friend of Wrox
Join Date: Oct 2004
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;
Old November 14th, 2008, 09:20 PM
Friend of Wrox
Join Date: Jun 2008
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.

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

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