From: Nicolas Pouillard Date: Fri, 14 Nov 2008 13:28:56 +0000 (+0100) Subject: Do nothing on an unknown-8bit encoding. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=a64a3762641753a5bb4908b6df156b3f0857c01b;p=sup Do nothing on an unknown-8bit encoding. --- 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"