I am attempting to install my affiliate script on someone's server. I noticed that their encoding is UTF-8 instead of ISO-8859-1 like all the other sites that I have installed it on. Here is my code :
var iesux = 1;
function uaff(which_ad) {
var ouhttp;
try {
ouhttp = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
ouhttp = new ActiveXObject("Microsoft.XMLHTTP");
} catch (E) {
ouhttp = false;
}
}
if (!ouhttp && typeof XMLHttpRequest!='undefined') {
ouhttp = new XMLHttpRequest();
iesux = 0;
}
if(! ouhttp) {
return false;
}
ouhttp.open("POST", "affclicks.php?id="+which_ad, true);
try {
ouhttp.setRequestHeader('X-Referer', document.location);
} catch (e) {
}
if(iesux) {
ouhttp.send()
} else {
ouhttp.send(null)
}
return true;
}
It works perfectly fine in IE on their server, but not in FF. With the script installed on my sites, it works perfectly in IE and in FF. The only thing that i find different is the character set. any ideas on how to fix that using coding? if it cannot be done by coding, what will need to be done to get it working?