in reply to Re: Need help with binary mode and UTF-8 characters
in thread Need help with binary mode and UTF-8 characters

Okay, thanks for the pointer: that tutorial did it. Yes, I wasn't telling Perl about the Unicode. Adding
binmode(IN, ':encoding(UTF-8)'); and binmode(OUT, ':encoding(UTF-8)');
immediately after opening these files did it.

Replies are listed 'Best First'.
Re^3: Need help with binary mode and UTF-8 characters
by ikegami (Patriarch) on Dec 10, 2009 at 14:56 UTC
    Actually, you were. The "decode" did the same thing as the first binmode.