I'm trying to force an 'ISO-8859-1' charset on my ajax request header but for some reason I can't get it to change from "UTF-8". I've got the following...
var request = new Request({
url: url,
method: 'post',
data: params,
encoding: 'ISO-8859-1',
onSuccess: function(textResponse, xmlResponse) {
//success func
},
onFailure: function(xhr) {
//fail func
}
}).send();
Even after configuring that setting, my Request Header's content-type shows "application/x-www-form-urlencoded; charset=UTF-8" in Chrome's Developer Tools.
Any ideas?