title: PHP - Upload utf-8 filename
body: <p>I'm Vietnamese and i want to upload a utf-8 filename like</p>
  
  <p><code>Tên Tệp Tiếng Việt.JPG</code></p>
  
  <p>Here is my code</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; 
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; 
  &lt;head&gt; 
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; 
  &lt;title&gt;utf-8&lt;/title&gt; 
  &lt;/head&gt; 
  
  &lt;body&gt; 
  &lt;?php
      if(isset($_POST["submit"])) { 
         if($_FILES["upload"]["error"] &gt; 0 ) echo "FILE ERROR!"; 
         else 
           { 
             $base_dir = "D:/"; 
             $fn = $_FILES["upload"]["name"]; 
  
             $fn2 = $base_dir.$fn;
  
             move_uploaded_file($_FILES["upload"]["tmp_name"],$fn2); 
           } 
       } 
  ?&gt; 
  &lt;form action="" method="post" enctype="multipart/form-data" name="form1" id="form1"&gt; 
    &lt;input type="file" name="upload" id="upload" /&gt; 
    &lt;input type="submit" name="submit" id="submit" value="Send" /&gt; 
  &lt;/form&gt; 
  &lt;/body&gt; 
  &lt;/html&gt; 
  </code></pre>
  
  <p>but when i upload that i see on my computer D:\ has a file like</p>
  
  <p><code>TÃªn Tá»‡p Tiáº¿ng Viá»‡t.JPG</code></p>
  
  <p>How to fix that thanks</p>