* [sup-talk] char. encoding problems - garbled output
@ 2008-01-17 12:51 Marko Myllymäki
2008-01-19 17:25 ` William Morgan
0 siblings, 1 reply; 4+ messages in thread
From: Marko Myllymäki @ 2008-01-17 12:51 UTC (permalink / raw)
Hi,
Sup seems very promising email-client for my purposes, good job!
However, I have some problems with wrong character encodings which
garble the sup output a bit unusable...
Uppercase umlaut characters seem to be the biggest problem. But I may
also have some configuration option wrong..
The following mail has weird content-type:
Content-type: multipart/mixed; boundary="===============2134700068=="
And here is the garbled output for that mail, which makes also other
lines in the message list interface garbled :(
----
Yest. 9am laskutus >Some subject text... +/INBOX K?~DYT?~D EHDOTTOMASTI
VIITETT
?~D Jan 15
----
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
I'm not actually sure what causes these problems, there may be something
else too... at the moment I'm using thunderbird email client and it
handles all the encodings well. But I want to change it to Sup :)
-Marko
^ permalink raw reply [flat|nested] 4+ messages in thread
* [sup-talk] char. encoding problems - garbled output
2008-01-17 12:51 [sup-talk] char. encoding problems - garbled output Marko Myllymäki
@ 2008-01-19 17:25 ` William Morgan
2008-01-25 12:09 ` Marko Myllymäki
0 siblings, 1 reply; 4+ messages in thread
From: William Morgan @ 2008-01-19 17:25 UTC (permalink / raw)
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>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [sup-talk] char. encoding problems - garbled output
2008-01-19 17:25 ` William Morgan
@ 2008-01-25 12:09 ` Marko Myllymäki
2008-01-30 17:24 ` William Morgan
0 siblings, 1 reply; 4+ messages in thread
From: Marko Myllymäki @ 2008-01-25 12:09 UTC (permalink / raw)
Excerpts from William Morgan's message of Sat Jan 19 19:25:00 +0200 2008:
> Does the following patch help?
Sorry, I'm really Sup-newbie and I don't know how to apply these patches yet :)
... figuring it out later.
I think the problems are mainly caused by the wide characters (whatever that
means, I guess multibyte codes). I'm using Sup as my main email-client now, 0.4
works quite nicely. When I have time I try to dig into these character things
and read more your devel notes.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [sup-talk] char. encoding problems - garbled output
2008-01-25 12:09 ` Marko Myllymäki
@ 2008-01-30 17:24 ` William Morgan
0 siblings, 0 replies; 4+ messages in thread
From: William Morgan @ 2008-01-30 17:24 UTC (permalink / raw)
Reformatted excerpts from Marko Myllym?ki's message of 2008-01-25:
> Sorry, I'm really Sup-newbie and I don't know how to apply these
> patches yet :) ... figuring it out later.
That change went out in the 0.4 release, so hopefully 0.4 will work for
you.
--
William <wmorgan-sup at masanjin.net>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-01-30 17:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-17 12:51 [sup-talk] char. encoding problems - garbled output Marko Myllymäki
2008-01-19 17:25 ` William Morgan
2008-01-25 12:09 ` Marko Myllymäki
2008-01-30 17:24 ` William Morgan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox