in reply to Re: Renaming non-ascii files
in thread Renaming non-ascii files
I see where you are going, but it will not work.
The reason I did not use:
is Perl does not see the non-ascii characters at all. It sees only question marks for filenames. Even though in Windows the filenames appear in a native lanuage like Japanese or Arabic. Example: ??? ?? ???.txt is what Perl sees as a non-ascii filename. Therefore, I picked up non-ascii files using:m/[^:ascii:]]/
and it worked...sometimes. The reason it does not work all the time is that if a file has exactly the same number of question marks perl considers it a duplicate and will not rename it.m/[\?]+/
I need a method to make Perl, when reading a directory or globbing(i've tried globbing many of times, no go) to see these filenames as they are, not as question marks.
thank for your assistance
|
---|
In Section
Seekers of Perl Wisdom