bart has asked for the wisdom of the Perl Monks concerning the following question:
I'm reading the file names out of an XML file, and thus, they are strings with the UTF-8 flag set.
I'm quite sure the cause of the problem is the mix of character encodings in Perl on Windows, as the standard encoding of the CMD shell (under which Perl runs) is CP-850, Explorer and the Windows API appear to be using either CP-1252 or 16-bit wide Unicode characters; and the Unicode-enabled strings in Perl.
I have no idea which encoding -e expects to work as it should. It does work if the path contains only plain ASCII characters.
So... what do I have to do to make it work?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl on Windows: file names with accented characters, UTF-8 and -e
by dasgar (Priest) on May 11, 2016 at 21:20 UTC | |
Re: Perl on Windows: file names with accented characters, UTF-8 and -e
by beech (Parson) on May 11, 2016 at 23:07 UTC | |
Re: Perl on Windows: file names with accented characters, UTF-8 and -e
by andal (Hermit) on May 12, 2016 at 07:31 UTC | |
Re: Perl on Windows: file names with accented characters, UTF-8 and -e
by Anonymous Monk on May 12, 2016 at 15:32 UTC |