$ perl -wE'use HTML::Entities; my $title= "ääö"; say encode_entities($title);' ääö (ist murks) $ perl -wE'use utf8; use HTML::Entities; my $title= "ääö"; say encode_entities($title);' ääö (sieht gut aus)