From b4fc05daee9e8d9703316cf736100236a2c6cb93 Mon Sep 17 00:00:00 2001 From: lnu Date: Wed, 6 Apr 2005 20:45:00 +0000 Subject: git-svn-id: svn+ssh://svn.gna.org/svn/feed2imap/trunk/feed2imap@17 f70e237a-67f3-0310-a06c-d2b8a7116972 --- lib/feed2imap/channel.rb | 20 ++++++++++---------- 1 file 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 += '' s += '' s += "

Channel: " - s += "" if @channel.link - s += @channel.title if @channel.title + s += "" if @channel.link + s += @channel.title.toISO_8859_1('utf-8') if @channel.title s += "" if @channel.link s += "
\nItem: " - s += "" if @link - s += @title if @title + s += "" if @link + s += @title.toISO_8859_1('utf-8') if @title s += "" if @link s += "\n" - s += "
Date: #{@date.to_s}" if @date # TODO improve date rendering ? - s += "
Author: #{@creator}" if @creator - s += "
Subject: #{@subject}" if @subject - s += "
Category: #{@category}" if @category + s += "
Date: #{@date.to_s.toISO_8859_1('utf-8')}" if @date # TODO improve date rendering ? + s += "
Author: #{@creator.toISO_8859_1('utf-8')}" if @creator + s += "
Subject: #{@subject.toISO_8859_1('utf-8')}" if @subject + s += "
Category: #{@category.toISO_8859_1('utf-8')}" if @category s += "

" - s += "

#{@content}

" if @content + s += "

#{@content.toISO_8859_1('utf-8')}

" if @content s += '' 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) -- cgit v1.2.3-54-g00ecf