title: PHP strtr does not work at all
body: <p>Even when i type </p>
  
  <pre><code>echo strtr("-äåö-", "äåö", "xxx");
  </code></pre>
  
  <p>it does not work properly it outputs this <code>&gt;xxx¥x¶&lt;</code>, however when i use example below it does not translate nothing at all it keeps original mambo jumbo. 
  If i type in form <code>ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑŐŰÜÒÓÔÕÖØÝßŸàáâãäåçèéêëìíîïñòóôõőöøšűùúûüýÿž</code> and click translate it outpputs the same string and <code>æ œ</code> does not translate at all.</p>
  
  <pre><code>&lt;form method="POST"&gt;
      &lt;input style="width:500px;" type="text" name="first_name" /&gt;
      &lt;input style="width:500px;" type="text" name="last_name" /&gt;
      &lt;input type="submit" name="submit" value="translate" /&gt;
  &lt;/form&gt;
  
  
  &lt;?php
  
      $dict = array(
                      "Æ" =&gt; "AE", 
                      "æ" =&gt; "ae", 
                      "Œ" =&gt; "OE",
                      "œ" =&gt; "oe"
                   );
  
      $first = strtr($_POST['first_name'], $dict);         
      $last  = strtr($_POST['last_name'], $dict);      
  
  
      $first = strtr($first, 
                            "ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑŐŰÜÒÓÔÕÖØÝßŸàáâãäåçèéêëìíîïñòóôõőöøšűùúûüýÿž",
                            "AAAAAACEEEEIIIINOUUOOOOOOYSYaaaaaaceeeeiiiinooooooosuuuuuyyz"); 
  
      $last  = strtr($last, 
                            "ÀÁÂÃÄÅÇÈÉÊËÌÍÎÏÑŐŰÜÒÓÔÕÖØÝßŸàáâãäåçèéêëìíîïñòóôõőöøšűùúûüýÿž",
                            "AAAAAACEEEEIIIINOUUOOOOOOYSYaaaaaaceeeeiiiinooooooosuuuuuyyz"); 
  
      echo $first." --- ";
      echo $last;
  ?&gt;
  </code></pre>
  
  <p>even when i added on top of code</p>
  
  <pre><code>foreach ($_POST as $key =&gt; $value) {
      $POST[$key] = iconv(mb_detect_encoding($_POST["first_name"]), "ASCII//TRANSLIT", $POST[$value]);
  }
  </code></pre>
  
  <p>and paste <code>AAAAAACEEEEIIIINOUUOOOOOOYSYaaaaaaceeeeiiiinooooooosuuuuuyyz</code> it comes out like this <code>yAyAyAyEyEyIyIyNyUyOyOyOyYyYyayauaueyeyiyiynyoyoyoysyuuuyyyzy�y�y�y�y�y�y�y�y�y�y�y�y�y�y�y�y�y�uay�yuuzu�y�y�y�y�y�y�u�</code></p>
  
  <p>Never mind since no one knows why it does not work i just used <code>str_replace</code> and <code>str_ireplace</code> very successfully without need for any concerns about encoding.</p>
  
  <p>EDIT: my bad encoding does matter for str_replace  too. i used on html page</p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  </code></pre>