Perl and MultiByte Characters
Hi,
I have a software package, that when it writes files, where the name contains accented or umlaut characters, it converts those characters to multi byte in the filename.
I have written a small Perl script, just to validate that the files exist on disk, based on a list of files contained in a text document The file names in this document have the correct accented or umlaut characters. This script fails on all the files that contain these characters. I think it's because I need to convert these characters to multi byte, to match how they have been named on disk.
However, if I attach the drive to my Windows system then my Perl script works, so I'm assuming that the underlying OS calls on Windows is doing this translation for me.
But, that isn't a complete solution, because Windows is case insensitive, whereas I need my script to be case sensitive.
So, is there any way to force Perl to convert strings, containing these characters, into multi byte, similar to WideCharToMultiByte in Windows C.
Cheers,
Eddie
|