i have set up a xhr , all the accents on the page are showed ok on ff an safari
so i setup a if condition for the overrideMimeTyp e method because ie dont recognize it and blocks the xhr then i set a else with a setRequestHeade r thinking this one would handle the no showing accents on ie (french accents) but it still does not work on ie, any thoughts? regards.
Code:
function _cms() {
cms.open("GET", 'cms.php', true);
cms.setRequestHeader('If-Modified-Since','Wed, 05 Apr 2006 00:00:00 GMT');
if (cms.overrideMimeType) {
cms.overrideMimeType('text/html; charset=ISO-8859-1')
}
else{cms.setRequestHeader("Content-type", "text/html; charset=ISO-8859-1"); }
cms.onreadystatechange = function() {
if(cms.readyState == 1){loader();}
if(cms.readyState == 4 && cms.status == 200){
document.getElementById("body_").innerHTML = cms.responseText;
Comment