in reply to UTF-8 and File::Find

# make File::Find unicode $_ = decode('utf8',$_);

... of course, this assumes that your file system encodes all non-ASCII filename entities as UTF-8. If your filesystem does not do that (like, say, FAT32, or directories mounted via Samba, or HFS+ filesystems) then your script will not return the correct results for these files.

HFS+ encodes filenames as NFD, so you'll likely have to convert them to NFC for comparisons to work properly.

Replies are listed 'Best First'.
Re^2: UTF-8 and File::Find
by zentara (Cardinal) on Jun 30, 2012 at 16:13 UTC
    Thanks for pointing that out, I don't deal much with network filesysytems. :-)

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku ................... flash japh