in reply to File::Find and UTF-8 problems

I guess you need to decode $_ in sub foo, because file names are binary data on unixish systems.

And I'd try use utf8; instead of use utf;. Positing runnable code is always a good idea.

Perl 6 - links to (nearly) everything that is Perl 6.

Replies are listed 'Best First'.
Re^2: File::Find and UTF-8 problems
by lagle (Novice) on Sep 27, 2010 at 09:59 UTC

    How do i decode it and into what? I understood it has been encoded into utf8 (or UTF-8) and now i should decode it into X, so that it can again be encoded into utf when getting printed.

    Did i understood it correctly, and then, what is X in the previous statement?

      Decoding always happens into perls internal string format.

      Please read this article, it tries to explain the encoding/decoding process, and what effects it has.

      Perl 6 - links to (nearly) everything that is Perl 6.