From 98d6450f694f87f0bacd94dd20eee6cec67f7aaa Mon Sep 17 00:00:00 2001 From: Matthias H Date: Thu, 27 Mar 2014 08:14:32 +0100 Subject: [PATCH] [httputil] fix unknown fallback encoding --- lib/rbot/core/utils/httputil.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb index aba730f9..39a47816 100644 --- a/lib/rbot/core/utils/httputil.rb +++ b/lib/rbot/core/utils/httputil.rb @@ -44,7 +44,7 @@ module ::Net ctype = self['content-type'] || 'text/html' return nil unless ctype =~ /^text/i || ctype =~ /x(ht)?ml/i - charsets = ['latin1'] # should be in config + charsets = ['ISO-8859-1'] # should be in config if ctype.match(/charset=["']?([^\s"']+)["']?/i) charsets << $1 -- 2.39.5