Help needed plz,,,

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following code using AJAX GET causes  (indian language) Tamil characters turn into question marks, and boxes. The same string submitted in a regular form with accept-charset= iso  8859-1  works without any problem.

 



 
function GetSub()
{
xmlHttp=GetHttpRequest();
 
xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4)
      {
          //alert(xmlHttp.responseText);
          
      document.getElementById("DivSub").innerHTML=xmlHttp.responseText;
      
      }
    }
    var url="subcategory.php";
url=url+"?category_name="+document.frmpass.category_name.value;
url=url+"&sid="+Math.random();
//xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
 
  //xmlHttp.open("GET","searchproduct.php?cat="+document.frmpass.category.value,true);
  xmlHttp.send(null);
  
  
}
 
 
 
 
regards
Prabhu s.s
 


      

[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux