From mboxrd@z Thu Jan 1 00:00:00 1970 From: shot@hot.pl (Shot (Piotr Szotkowski)) Date: Tue, 22 Apr 2008 13:39:59 +0200 Subject: [sup-talk] System encoding versus messages encoding In-Reply-To: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com> References: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com> Message-ID: <20080422113959.GA20034@durance.shot.pl> Israel Herraiz: > As far as I know (considering what I have read in the documentation > and in the archives of this mailing list), Sup determines the encoding > using the environment variables and tries to decode all the messages > using that encoding. For people working in different languages and > environments (like me, I write in English and Spanish, some people > send me messages in UTF-8, some other in ISO-88159-1), having an > overall encoding for all the messages is not a good solution. I agree wholeheartedly ? I tried to use Sup a couple of weeks ago, but this issue made it unusable for me (I planned to hack on this some day, but my work and uni obligations do not leave any free time lately). :( To make matters worse, the relevant RFC actually requires emails to be encoded in the ?tightest? encoding possible ? when I?m writing an email in Polish without any non-US-ASCII letters, it should be sent as US-ASCII; if I include Polish diacritical characters, it should be encoded as ISO-8859-2, but if I add some characters outside of it (say, ellipsis) it should be sent in UTF-8. As a result, I regularly receilve emails in US-ASCII, ISO-8859-2 and UTF-8 ? but also in ISO-8859-1, ISO-8859-15, as well as some cyryllic encodings. I remember Mutt going through some growing pains to accomodate this, but has it all sorted out now (there is an issue of recoding the email one replies to to the encoding expected by the editor, for example). I?ll be more than happy to test any work done in this regard and I offer any knowledge that could be useful; unfortunately, I can?t promise any hacking time (I just got accepted for this year?s Summer of Code to hack on CiviCRM internationalisation ? maybe Sup could apply to be a project in next year?s SoC edition?). -- Shot -- I grew up in Europe, where the history comes from. -- Eddie Izzard -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 191 bytes Desc: not available Url : http://rubyforge.org/pipermail/sup-talk/attachments/20080422/9e7cc1bf/attachment.bin