note 111908 deleted from normalizer.normalize by aharvey
| From: | aharvey@php.net | Date: | Thu, 11 Apr 2013 00:04:55 +0000 |
| Subject: | note 111908 deleted from normalizer.normalize by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-194442@lists.php.net to get a copy of this message | ||
Note Submitter: admin at iecw dot net
----
If you want to normalize a filename on Mac OS X, because it is in UTF-8 NFD and you need UTF-8 NFC
(See: http://en.wikipedia.org/wiki/Unicode_equivalence#Combining_and_precomposed_characters)
you may as well use:
<?php
$filename_nfc = iconv("UTF-8-MAC", "UTF-8", $filename_nfd);
?>