in reply to Re^2: UTF-8 and readdir, etc.
in thread UTF-8 and readdir, etc.
also instead of
opendir my $dh, '/some/dir' or die $!;it's better to have
my $dir = '/some/dir'; # unicode # get it as fs representation my $fs_dir = Encode::encode( locale_fs => $dir ); opendir my $dh, $fs_dir or die $!;
|
|---|