Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
From: wmorgan-sup@masanjin.net (William Morgan)
Subject: [sup-talk] char. encoding problems - garbled output
Date: Sat, 19 Jan 2008 09:25:00 -0800	[thread overview]
Message-ID: <1200763427-sup-2564@south> (raw)
In-Reply-To: <478F4F67.1040405@iki.fi>

Hi Marko,

Reformatted excerpts from =?UTF-8?B?TWFya28gTXlsbHltw6RraQ==?='s message of 2008-01-17:
> This kind of content-type works fine with umlaut ??????:
> Content-type: text/plain; charset=ISO-8859-1; format=flowed
> 
> But this doesn't:
> Content-type: text/plain; Format=Flowed; Charset=iso-8859-1

Does the following patch help?

diff --git a/lib/sup/util.rb b/lib/sup/util.rb
index 47bc1c2..ceaf0b8 100644
--- a/lib/sup/util.rb
+++ b/lib/sup/util.rb
@@ -62,7 +62,7 @@ module RMail
     end
 
     def charset
-      if header.field?("content-type") && header.fetch("content-type") =~ /charset="?(.*?)"?(;|$)/
+      if header.field?("content-type") && header.fetch("content-type") =~ /charset="?(.*?)"?(;|$)/i
         $1
       end
     end

-- 
William <wmorgan-sup at masanjin.net>


  reply	other threads:[~2008-01-19 17:25 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-17 12:51 Marko Myllymäki
2008-01-19 17:25 ` William Morgan [this message]
2008-01-25 12:09   ` Marko Myllymäki
2008-01-30 17:24     ` William Morgan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1200763427-sup-2564@south \
    --to=wmorgan-sup@masanjin.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox