title: Search is not working on IE 10, but works great on Chrome, Safari, Opera, Firefox
body: <p>it works great when it searches into database english characters on IE 10 but nothing shows as text when it searches into database to find greek characters. This happens only with IE</p>
  
  <pre><code>&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/textinputs_jquery.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="js/textinputs_jquery_src.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function(){   
  
    $("#comp_text").live('input paste',function(){
      var str=document.getElementById("comp_text");
      if (str.value.length &lt;3){
          return false;
      }
      var twidth=str.offsetWidth;
      $('#txtHint').width(twidth);
      $('#txtHint').load('gethint.php?q='+str.value);  
    });
    $(".add").submit( function(){
      if($('#company').length){
          return true;
      }else{
          alert("");
          return false;
      }
      });
  });  
  
  function showHint(str)
  {
  if (str.length==0)
    {
    document.getElementById("txtHint").innerHTML="";
    return;
    }
  if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    }
  else
    {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  xmlhttp.onreadystatechange=function()
    {
    if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
      {
      document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
      }
    }
  xmlhttp.open("GET","gethint.php?q="+str,true);
  xmlhttp.send();
  }
  
  
  function set_val(str, company){
      document.getElementById('comp_text').value= str;
      document.getElementById('txtHint').innerHTML="";
      document.getElementById("customer_place").innerHTML='&lt;input type="hidden" id="company" value="'+company+'"&gt;';
  }
  function cust_control(){
  
      if (document.getElementByName('company')){
          alert ("");
          return false;
      }else
          return true;
  }
  
  &lt;/script&gt;
  &lt;form method=\"post\" name=\"addn\" class=\"add\" action=\"do_insert.php\"&gt;
  &lt;input type="text" id="comp_text" onkeyup="showHint(this.value)" name="company" size="20" style="text-align: center; font-size: 13px;"/&gt;
  &lt;div id="txtHint"&gt;&lt;/div&gt;
  &lt;div id="customer_place"&gt;&lt;/div&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>and gethint.php ...</p>
  
  <pre><code>$q=$_GET["q"];
  $response='';
  
  $query="SELECT uid, company FROM users where company like '".$q."%' and userid='$userid' order by company";
  mysql_query("set character set 'utf8'");
  $result=mysql_query($query);
  
  if (mysql_num_rows($result) &gt; 0) {
  $response.='&lt;table&gt;';
      while ($row=mysql_fetch_array($result)){
          $response.='&lt;tr&gt;&lt;td onclick="set_val(\''.$row['company'].'\', \''.$row['uid'].'\')"&gt;'.$row['company'].'&lt;/td&gt;&lt;/tr&gt;';
      }
  $response.='&lt;/table&gt;';  
  echo $response;
  }else{
  }
  </code></pre>