title: Cant get out signs like ä, ö, ü from filename
body: <p>I have the following problem: 
  I created a file-upload. The uploader works fine. In the uploader i generate a new filename (without blanks, everything written in small letters, etc.).
  For that i created a function. But I still have problems with the german "Umlaute" (ä, ü, ö, ß). 
  When I use the function, the function didn't replace them. I always get files named like "ta??nzer.pdf". </p>
  
  <p>Here is the php code: </p>
  
  <pre><code>$temp = explode(".", $_FILES["file"]["name"]);
  $newname = generate_alias($temp[0]);
  $_FILES["file"]["name"] = $newname.".".$temp[1];
  
  move_uploaded_file($_FILES["file"]["tmp_name"],
        "../media/presse/" . $_FILES["file"]["name"]);
  </code></pre>
  
  <p>And here the function: </p>
  
  <pre><code>function generate_alias($text) {
  # Leerzeichen an Anfang und am Ende entfernen
  $text = trim($text);
  # Umlaute ersetzen
  $upas = Array("ä" =&gt; "ae", "ü" =&gt; "ue", "ö" =&gt; "oe", "Ä" =&gt; "Ae", "Ü" =&gt; "Ue", "Ö" =&gt; "Oe","ß" =&gt; "ss","á"=&gt;"a","Á"=&gt;"A","é"=&gt;"e","è"=&gt;"e","ê"=&gt;"e","É"=&gt;"E");
  $text = strtr($text, $upas);
  # Alles klein schreiben
  $text = strtolower($text);
  #Sonderzeichen entfernen
  $not_allowed = array("/", "|", "\\", "_", "(", ")", "{", "}", "[", "]", "!", "\"", "'", "‘", "$", "&amp;", "?", "=", "*", "#", ";", ",", ":", ".", "&lt;", "&gt;", "^", "°");
  $text = str_replace($not_allowed, "", $text);
  # Leerräume durch Bindestrich ersetzen
  $text = strtr ( $text, " ", "-" );
  
  return $text;
  }
  </code></pre>
  
  <p>I use this function also for creating alias from the article titles. The article titles comes from $_POST['title']. And there the german "Umlaute" are replaced. But not in this case - uploading a file. </p>
  
  <p>Do you know why?</p>