in reply to opening accented file names
#this decode utf8 routine is used so filenames with extended # ascii characters (unicode) in filenames, will work properly use Encode; opendir my $dh, $path or warn "Error: $!"; my @files = grep !/^\.\.?$/, readdir $dh; closedir $dh; # @files = map{ "$path/".$_ } sort @files; #$_ = decode( 'utf8', $_ ) for ( @files ); @files = map { decode( 'utf8', "$path/".$_ ) } sort @files;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: opening accented file names
by Jim (Curate) on Nov 11, 2010 at 22:31 UTC |