From mboxrd@z Thu Jan 1 00:00:00 1970 From: helgedt@tihlde.org (Helge Titlestad) Date: Mon, 27 Apr 2009 22:00:44 +0200 Subject: [sup-talk] UTF-8 message sending patch Message-ID: <1240861799-sup-787@colargol.tihlde.org> Hi, I just installed sup and noticed that it didn't play extremely well with utf-8 out of the box. http://sup.rubyforge.org/wiki/wiki.pl?UTF8 together with the String hack from http://www.nabble.com/UTF-8-woes-td21598658.html#a21598658 fixed the viewing parts (I think), but it's still unacceptable to send raw utf-8 in email headers. So I fixed it with another little hack (to edit-message-mode.rb), which sets Content-Transfer-Encoding to 8-bit and more importantly tries to convert any utf-8 headers to quoted printable. I think the patch (attached) fixes my problems, but it's probably far from complete. It doesn't detect non-utf8-but-still-illegal-strings, it assumes every header except Subject is an address, and so on. Any feedback is welcome. (: -- alge -------------- next part -------------- A non-text attachment was scrubbed... Name: sup-utf8-message-sending.patch Type: application/octet-stream Size: 1904 bytes Desc: not available URL: