![]() |
|
laziness, impatience, and hubris | |
PerlMonks |
Re: encoding of file namesby ikegami (Patriarch) |
on Mar 25, 2010 at 20:17 UTC ( #830957=note: print w/replies, xml ) | Need Help?? |
Perl treats file names as opaque strings of bytes*. In unix, they are usually characters encoded using the current locale, which in turn, is usually UTF-8. You need to decode the file names, and you'll be all set. * — This presents a problem on Windows which stores them as characters, but that's not relevant here.
In Section
Seekers of Perl Wisdom
|
|