summaryrefslogtreecommitdiff
path: root/lib/feed2imap
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/feed2imap/channel.rb20
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)
d colspan='5' class='logmsg'> 2011-10-14Make the quotes in ProofGeneral to be nearly invisibleRené Neumann1-1/+1 2011-08-23Disable hightlighting of the domain in the FF urlbarRené Neumann1-0/+3 2011-08-12Enhance IE scriptRené Neumann1-6/+7 2011-08-11BlaRené 'Necoro' Neumann1-0/+2 2011-08-11Local fontsRené 'Necoro' Neumann1-13/+22 2011-08-11Better inconsolata thingsRené Neumann4-4/+13 2011-08-10Moved some functions to their own filesRené Neumann3-124/+120 2011-08-10More advanced IE scriptRené Neumann2-1/+74 2011-08-10Inconsolata also in emacsRené Neumann1-1/+1 2011-08-10Better vim fontsRené 'Necoro' Neumann1-1/+1 2011-08-09ooffice aliasRené Neumann1-0/+2 2011-08-09Update the needed hg-extensions.René Neumann1-1/+2 2011-06-08gtkrc stuff for Qt-Gtk-StyleRené 'Necoro' Neumann2-0/+8 2011-06-08Updated fonts.conf to work better on lcdsRené 'Necoro' Neumann1-17/+6