From a64a3762641753a5bb4908b6df156b3f0857c01b Mon Sep 17 00:00:00 2001 From: Nicolas Pouillard Date: Fri, 14 Nov 2008 14:28:56 +0100 Subject: [PATCH] Do nothing on an unknown-8bit encoding. --- lib/sup/util.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sup/util.rb b/lib/sup/util.rb index 6a6da5e..f3db95d 100644 --- a/lib/sup/util.rb +++ b/lib/sup/util.rb @@ -620,7 +620,7 @@ end class Iconv def self.easy_decode target, charset, text - return text if charset =~ /^x-unknown$/i + return text if charset =~ /^(x-unknown|unknown-8bit)$/i charset = case charset when /UTF[-_]?8/i: "utf-8" when /(iso[-_])?latin[-_]?1$/i: "ISO-8859-1" -- 2.45.2