Hello irw005. This is the subrutine I use to read the file names in a directory with unicode names (use Win32::Unicode::Dir)
sub ReadDir{ my $Directory=shift; my @Documents; print "Reading directory's content $Directory\n"; my $wdir = Win32::Unicode::Dir->new; $wdir->open($Directory) || die; for ($wdir->fetch) { next if /^\.{1,2}$/; push (@Documents, $_) } $wdir->close || dieW $wdir->error; return \@Documents; }
In reply to Re: UTF-8 and readdir, etc.
by IB2017
in thread UTF-8 and readdir, etc.
by jrw005
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |