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
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

var result = xmlHttp.responseText;
alert(result);