in reply to treat files with umlauts (utf)
use Encode; chdir ($scandir); opendir(DIR,'.'); @files=grep {-f $_} readdir(DIR); # this line tells Perl to interpret the filenames as utf8, # and once done, your umlauts should appear @files = map{ decode('utf8',$_) } @files;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: treat files with umlauts (utf)
by GotToBTru (Prior) on Apr 07, 2014 at 16:42 UTC | |
by zentara (Cardinal) on Apr 08, 2014 at 17:59 UTC |