diff options
author | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2005-04-06 20:45:00 +0000 |
---|---|---|
committer | lnu <lnu@f70e237a-67f3-0310-a06c-d2b8a7116972> | 2005-04-06 20:45:00 +0000 |
commit | b4fc05daee9e8d9703316cf736100236a2c6cb93 (patch) | |
tree | 6f1ea10f5f8ef7691f3f5e21dfc54d92dba20c04 | |
parent | 0b8dd86de2c204cb5b72172f1fd0ea362947128f (diff) | |
download | feed2imap-b4fc05daee9e8d9703316cf736100236a2c6cb93.tar.gz feed2imap-b4fc05daee9e8d9703316cf736100236a2c6cb93.tar.bz2 feed2imap-b4fc05daee9e8d9703316cf736100236a2c6cb93.zip |
git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@17 f70e237a-67f3-0310-a06c-d2b8a7116972
Diffstat (limited to '')
-rw-r--r-- | lib/feed2imap/channel.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/feed2imap/channel.rb b/lib/feed2imap/channel.rb index d59b47b..f359f82 100644 --- a/lib/feed2imap/channel.rb +++ b/lib/feed2imap/channel.rb @@ -217,20 +217,20 @@ class Item s += '<html>' s += '<body>' s += "<p>Channel: " - s += "<a href=\"#{@channel.link}\">" if @channel.link - s += @channel.title if @channel.title + s += "<a href=\"#{@channel.link.toISO_8859_1('utf-8')}\">" if @channel.link + s += @channel.title.toISO_8859_1('utf-8') if @channel.title s += "</a>" if @channel.link s += "<br/>\nItem: " - s += "<a href=\"#{@link}\">" if @link - s += @title if @title + s += "<a href=\"#{@link.toISO_8859_1('utf-8')}\">" if @link + s += @title.toISO_8859_1('utf-8') if @title s += "</a>" if @link s += "\n" - s += "<br/>Date: #{@date.to_s}" if @date # TODO improve date rendering ? - s += "<br/>Author: #{@creator}" if @creator - s += "<br/>Subject: #{@subject}" if @subject - s += "<br/>Category: #{@category}" if @category + s += "<br/>Date: #{@date.to_s.toISO_8859_1('utf-8')}" if @date # TODO improve date rendering ? + s += "<br/>Author: #{@creator.toISO_8859_1('utf-8')}" if @creator + s += "<br/>Subject: #{@subject.toISO_8859_1('utf-8')}" if @subject + s += "<br/>Category: #{@category.toISO_8859_1('utf-8')}" if @category s += "</p>" - s += "<p>#{@content}</p>" if @content + s += "<p>#{@content.toISO_8859_1('utf-8')}</p>" if @content s += '</body></html>' s end @@ -260,7 +260,7 @@ class Item textpart.header['Content-Transfer-Encoding'] = '7bit' textpart.body = to_text htmlpart = RMail::Message::new - htmlpart.header['Content-Type'] = 'text/html; charset=UTF-8' + htmlpart.header['Content-Type'] = 'text/html; charset=iso-8859-1' htmlpart.header['Content-Transfer-Encoding'] = '7bit' htmlpart.body = to_html message.add_part(textpart) |