From ea6db8e62753a011321da89439c650f70bd1d032 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 14 Sep 2019 11:38:36 +1200 Subject: URL_Title: Allow capitalised `UTF-8` charsest --- Plugin/URL_Title.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1