$metadata->{'TITLE'} = $content->{'title'};
$metadata->{'TITLE'} =~ s/\+/ /g;
$metadata->{'TITLE'} =~ s/%(..)/chr(hex($1))/ge;
+ $metadata->{'TITLE'} = decode("utf8", $metadata->{'TITLE'});
$self->debug('Title found: %s', $metadata->{'TITLE'});
if (exists($tag->[1]->{'name'}) and ('title' eq $tag->[1]->{'name'})) {
$metadata->{'TITLE'} = $tag->[1]->{'content'};
# Convert HTML entities in the title. This is a bit convoluted.
- $metadata->{'TITLE'} = encode("utf8",
- decode_entities(
- decode("utf8", $metadata->{'TITLE'})));
+ $metadata->{'TITLE'} = decode_entities(
+ decode("utf8", $metadata->{'TITLE'}));
$self->debug('Title found: %s', $metadata->{'TITLE'});
}