rss plugin: prevent double UTF-8 deconding
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 20 Nov 2008 14:17:27 +0000 (15:17 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 20 Nov 2008 14:27:24 +0000 (15:27 +0100)
commitac9eb1b02d4200006566ccd630dd678345008963
tree4d5e11f76d1123987c9a251ab0a20e82f408f6a1
parent62ca2eda0b2d42f79d06f85e0ce041be64055ad2
rss plugin: prevent double UTF-8 deconding

The rss parser looks at the encoding specified into the XML file and
converts everything to UTF-8. Since we do the UTF-8 conversion
ourselves, monkey-patch the XML 'encoding' declaration to claim it's
UTF-8 already (as it actually is).
data/rbot/plugins/rss.rb