luvtocode has asked for the wisdom of the Perl Monks concerning the following question:

How do I do File::find on a directory with a special character in name without getting can't stat no such directory?

Error message is: Can't stat J:/My Music/FLAC Archive/King Sunny AdΘ/Seven Degrees North: No such file or directory

open ($outfh, '>selection.txt'); find({wanted => sub { wanted($outfh) } }, @selectedDirs); close $outfh;

Replies are listed 'Best First'.
Re: File:find with directory names containing special characters
by Anonymous Monk on Dec 15, 2011 at 22:08 UTC
Re: File:find with directory names containing special characters
by trizen (Hermit) on Dec 15, 2011 at 20:03 UTC
    Add use encoding 'utf8'; into your program. - I was wrong. Sorry about that.

      Thanks - that was the first thing I tried too.