use Encode qw(decode encode_utf8); my $data = decode "UTF-8", $eingelesen;