nfd

In PHP, how do I deal with the difference in encoded filenames on HFS+ vs. elsewhere?

I am creating a very simple file search, where the search database is a text file with one file name per line. The database is built with PHP, and matches are found by grepping the file (also with PHP). This works great in Linux, but not on Mac when non-ascii characters are used. It looks like names are encoded differently on HFS+ (Ma...

how to extract characters from a Korean string in VBA

Need to extract the initial character from a Korean word in MS-Excel and MS-Access. When I use Left("한글",1) it will return the first syllable i.e 한, what I need is the initial character i.e ㅎ . Is there a function to do this? or at least an idiom? If you know how to get the Unicode value from the String I'd be able to work it out from...