in reply to [CLOSED] How to make PERL just execute the script until its end?

Why do you try to convert/read the file names from find as UTF-8? Maybe simply keeping the filenames as-is already is enough?

See maybe binmode to make Perl not convert stuff it reads. Of course, then using UTF-8 regular expressions will stop working. If you want to mix UTF-8 and other encodings, read all data with its respective encoding. If your filesystem delivers filenames in different encodings, clean up your filesystem.

Replies are listed 'Best First'.
Re^2: How to make PERL just execute the script until its end?
by nikolay (Beadle) on Oct 17, 2016 at 06:39 UTC
    Yes, i need process the filenames in PERL and return it to FS back. In order to clean my FS i have to process the files -- since the original question comes up.