From b55bf0a982752bf594dd25fb88b07222e45899a5 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Tue, 13 Aug 2013 00:40:23 +0200 Subject: Force encoding of data to UTF-8 --- lib/feed2imap/feed2imap.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/feed2imap/feed2imap.rb') 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)" -- cgit v1.2.3-70-g09d2