in reply to Re^2: Reading File with Czech text inside
in thread Reading File with Czech text inside

If the file is encoded using iso-8859-2 (like file_iso-8859-2.txt above),

open my $FH, "<:encoding(iso-8859-2)", 'file_iso-8859-2.txt' or die "$!\n";

If the file is encoded using UTF-8 (like file_utf-8.txt above),

open my $FH, "<:encoding(UTF-8)", 'file_utf-8.txt' or die "$!\n";