S
Stéphane Bourdeaud
Hi,
I am struggling with handling accented characters in Win32 long filenames
correctly in Perl.
If I try to get a recursive list of directories in a given path by doing
something like this:
my @list = `dir /a:d /b /s $path`;
Where $path is a user specified path (and yes, the path does exist, yes I
chomp @list before using it, and yes this does work when there are no
international characters in the sub directories names).
If I then look at the values stored in @list or try to use them, if they do
contain an international character (such as an accented vowel), then the
call fails because the path can't be found (even though it does exist).
Any ideas on how I could get Perl to store the path names correctly in that
array?
Any help would be appreciated.
Cheers,
S. Bourdeaud
I am struggling with handling accented characters in Win32 long filenames
correctly in Perl.
If I try to get a recursive list of directories in a given path by doing
something like this:
my @list = `dir /a:d /b /s $path`;
Where $path is a user specified path (and yes, the path does exist, yes I
chomp @list before using it, and yes this does work when there are no
international characters in the sub directories names).
If I then look at the values stored in @list or try to use them, if they do
contain an international character (such as an accented vowel), then the
call fails because the path can't be found (even though it does exist).
Any ideas on how I could get Perl to store the path names correctly in that
array?
Any help would be appreciated.
Cheers,
S. Bourdeaud