hello guys,
i am php developer
there are problem with me in data unicode retrieved by ajax
it is supposed to when i click on option in select menu , the table with red circle appear and get data from database
the problem is that data appears as in the picture
like that �������
---------------------------------------------------------------------------------
this is my function i use it :-
____________________________
function show_teams(id) {
if (window.XMLHttpRequest) {
xmlhttp = new XMLHttpRequest();
}else{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange = function() {
if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
document.getElementById("table_teams").innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open("POST","<?=base_url()?>btola/admin_btola/show_teams/"+id,true);
xmlhttp.setRequestHeader('Content-type','application/x-www-form-urlencoded; charset=ANSI;');
xmlhttp.send();
}
============================================================================
the data is with arabic language
can u help me plz ??
i see problem like my problem in this forum
here :
http://www.codingforums.com/showthread.php?t=141067
but i don't understand how he solved it ?!!!
please help me quickly because this problem is very urgent in my work
thank u very much and forgive me for my bad language