]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
[httputil] fix unknown fallback encoding
authorMatthias H <apoc@sixserv.org>
Thu, 27 Mar 2014 07:14:32 +0000 (08:14 +0100)
committerMatthias H <apoc@sixserv.org>
Thu, 27 Mar 2014 07:14:32 +0000 (08:14 +0100)
lib/rbot/core/utils/httputil.rb

index aba730f9087e68c790c9b48c93accf56689a47a6..39a4781662fe4d03512839413b32e04160875129 100644 (file)
@@ -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