in reply to Reading File with Czech text inside

Does this give you what you are looking for?

use strict; use warnings; use LWP::Simple; use Encode; my $text = decode( 'iso-8859-2', get("http://ufal.mff.cuni.cz/~hajic/courses/npfl067/TEXTCZ1.txt") );

Replies are listed 'Best First'.
Re^2: Reading File with Czech text inside
by fibokowalsky (Initiate) on Mar 02, 2011 at 14:03 UTC
    Thank u for the reply. Using get, I can read the text normally in utf8 but I want to read already downloaded file with open. The script should not require connection.