diff options
-rw-r--r-- | Plugin/URL_Title.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Plugin/URL_Title.pm b/Plugin/URL_Title.pm index 85dc1eb..0a62782 100644 --- a/Plugin/URL_Title.pm +++ b/Plugin/URL_Title.pm @@ -86,7 +86,7 @@ sub get_title $p->parse($html); return (undef, undef, "Error parsing HTML: $!") if $!; - if ($charset and $charset ne "utf-8") { + if ($charset and lc($charset) ne "utf-8") { my $dc = Encode::find_encoding($charset); return (undef, undef, "Error: Unknown encoding $charset") unless $dc; $title = $dc->decode($title); |