cat my_file | perl -e 'use Encode "from_to"; while (<>) {my $s = $_; from_to($s,"iso-8859-1","utf8"); print $s}'