diff options
author | Antonio Terceiro <terceiro@debian.org> | 2013-08-13 00:40:23 +0200 |
---|---|---|
committer | Antonio Terceiro <terceiro@softwarelivre.org> | 2013-08-13 01:38:12 +0200 |
commit | b55bf0a982752bf594dd25fb88b07222e45899a5 (patch) | |
tree | 514a13ab50ec24e366ea7af2bc99ae83ccd49d33 /lib/feed2imap | |
parent | 2f0e3542adcf7242f8a3401363752aab4cfa1961 (diff) | |
download | feed2imap-b55bf0a982752bf594dd25fb88b07222e45899a5.tar.gz feed2imap-b55bf0a982752bf594dd25fb88b07222e45899a5.tar.bz2 feed2imap-b55bf0a982752bf594dd25fb88b07222e45899a5.zip |
Force encoding of data to UTF-8
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/feed2imap.rb | 2 |
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)" |