summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Terceiro <terceiro@debian.org>2013-08-13 00:40:23 +0200
committerAntonio Terceiro <terceiro@softwarelivre.org>2013-08-13 01:38:12 +0200
commitb55bf0a982752bf594dd25fb88b07222e45899a5 (patch)
tree514a13ab50ec24e366ea7af2bc99ae83ccd49d33
parent2f0e3542adcf7242f8a3401363752aab4cfa1961 (diff)
downloadfeed2imap-b55bf0a982752bf594dd25fb88b07222e45899a5.tar.gz
feed2imap-b55bf0a982752bf594dd25fb88b07222e45899a5.tar.bz2
feed2imap-b55bf0a982752bf594dd25fb88b07222e45899a5.zip
Force encoding of data to UTF-8
-rw-r--r--lib/feed2imap/feed2imap.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/feed2imap/feed2imap.rb b/lib/feed2imap/feed2imap.rb
index acfb56e..f1bc9cd 100644
--- a/lib/feed2imap/feed2imap.rb
+++ b/lib/feed2imap/feed2imap.rb
@@ -223,7 +223,7 @@ class Feed2Imap
next
end
begin
- feed = FeedParser::Feed::new(f.body)
+ feed = FeedParser::Feed::new(f.body.force_encoding('UTF-8'))
rescue Exception
n = @cache.parse_failed(f.name)
m = "Error while parsing #{f.name}: #{$!} (failed #{n} times)"