title: PHP: How to list the files with non-english file names, using DirectoryIterator?
body: <p>The files inside a folder will be with the utf-8 names like:</p>
  
  <ul>
  <li>日本.txt</li>
  </ul>
  
  <p>While i use this code to list the files inside the dir:</p>
  
  <pre><code>$dir = new DirectoryIterator($path);
  foreach ($dir as $filename) {
      echo $filename . "&lt;br&gt;";
  }
  </code></pre>
  
  <p>And i also have correct html header like:</p>
  
  <pre><code>&lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
  </code></pre>
  
  <p>But anyway, the final output is being like following:</p>
  
  <ul>
  <li>??.txt</li>
  </ul>
  
  <p>How can i make it work?</p>