title: PHP: How to create unicode filenames
body: <p>I'm trying to create files with Unicode characters in there filenames. I don't quite know what encoding I should use, or if it's possible at all.</p>
  
  <p>I have this file, saved in latin1 encoding:</p>
  
  <pre><code>$h = fopen("unicode_â™«.txt", 'w');
  fclose($h);
  </code></pre>
  
  <p>In UTF-8 this would decode as 'unicode_♫.txt'. It writes it in the latin1 version to the disk (which is obvious?). I need it to be save as it would appear with UTF-8 decoding. I've also tried encoding it with UTF-16 but that's not working either.</p>
  
  <p>I'm using PHP 5.2, and would like this to work with NTFS, ext3 and ext4.</p>
  
  <p>How can this be done?</p>