title: Problems with special (composite) characters when uploading files
body: <p>I'm uploading files with names which include special characters, through a form. It seems that somehow, when the files are sent, the name is changed.</p>
  <p>This is problematic for me since I want to check the given names against a predetermined list.  Everything works fine as long as no special (composite) characters like å/ä/ö are used. How can I solve this problem?</p>
  <p>The form:</p>
  <pre><code>&lt;form name=&quot;uploadForm&quot; id=&quot;uploadForm&quot; method=&quot;POST&quot; enctype='multipart/form-data'&gt;
      &lt;label class=&quot;upload&quot; for=&quot;upload&quot;&gt;Choose file(s) to upload&lt;/label&gt;
      &lt;input type=&quot;file&quot; name=&quot;upload[]&quot; id=&quot;upload&quot; accept=&quot;.m4a&quot; multiple required&gt; 
      &lt;button type=&quot;submit&quot; name='submit' id=&quot;submit&quot;&gt;Save&lt;/button&gt;
  &lt;/form&gt;
  </code></pre>
  <p>Uploading a file called 'rör.m4a' through the above form, I get the following in php:</p>
  <pre><code>echo bin2hex($_FILES['upload']['name'][0]); =&gt; 726fcc88722e6d3461 
  
  echo bin2hex('rör.m4a'); =&gt; 72c3b6722e6d3461
  </code></pre>
  <p>The upload seems to affect the composite character 'ö'.</p>
  <p>Thanks in advance!</p>