title: jQuery Autocomplete Turkish special character problems
body: <p>I have problems with Turkish special characters my encoding system is ISO-8859-9 charset in headers and server.</p>
  
  <pre><code>//Database connections
  include_once("ogr_con.php");
  require_once("oraunit.php");
  
  function strtoupper_tr($string){
    $upper=array("ü" =&gt; "Ü", "ö" =&gt; "Ö", "ğ" =&gt; "Ğ", "ş" =&gt; "Ş", "ç" =&gt; "Ç", "i" =&gt; "İ", "ı" =&gt; "I");
    return strtoupper(strtr($string,$upper));
  }
  
  function strtolower_tr($string){
    $low=array("Ü" =&gt; "ü", "Ö" =&gt; "ö", "Ğ" =&gt; "ğ", "Ş" =&gt; "ş", "Ç" =&gt; "ç", "İ" =&gt; "i", "I" =&gt; "ı");
    return strtolower(strtr($string,$low));
  }
  
  $adi= strtolower_tr($_GET["q"]);
  $adi[0]=strtoupper($adi[0]);
  $soyadi= strtoupper_tr($_GET["q"]);
  if (!$adi) return;
  
  $adiquery="SELECT K.ADI||' '||K.SOYADI AS FLNAME 
             FROM personel.kisi k 
             WHERE K.ADI LIKE '%".$adi."%' OR K.SOYADI LIKE '%".$soyadi."%')";
  $aq=oraArray($con, $adiquery, array());
  if(is_array($aq)){
      while(list($sno,$u)=each($aq)){
          $uadi = $u['FLNAME'];
          echo "$uadi\n";
      }
  }
  </code></pre>
  
  <ol>
  <li>Functions <code>strtoupper_tr</code> and <code>strtolower_tr</code> not working for special characters.</li>
  <li><p><code>$uadi</code> - when this values is returned not displayed properly in textbox.</p>
  
  <p><code>&lt;script type="text/javascript"&gt;<br>
  $(document).ready(function() {<br>
     $("#fuadsoyad").autocomplete("get_name.php", {<br>
     width: 260,<br>
     matchContains: true,<br>
     selectFirst: false<br>
      });<br>
  });<br>
  &lt;/script&gt;</code></p></li>
  </ol>
  
  <p>Can anyone help me solve this problem?<br>
  What do you advice me to do?  </p>