From mboxrd@z Thu Jan 1 00:00:00 1970 From: israel.herraiz@gmail.com (Israel Herraiz) Date: Mon, 21 Apr 2008 22:37:23 +0200 Subject: [sup-talk] System encoding versus messages encoding Message-ID: <691d00b80804211337h32fe47b0l7c5ab0b331ae71af@mail.gmail.com> Hi there, I have been using Sup for a couple of days, and I have found some problems with the encoding of messages written in ISO-8859-1(5). The encoding in my system is en_US.UTF-8, but most of the email that I receive is in Spanish, and usually encoded with ISO-8859-1 (and sometimes with ISO-8859-15). When I start Sup, it detects my UTF-8 and tries to decode the messages with that encoding, that results in hardly readable messages (most of the sentences where wide characters appear are truncated). If I start it with "LANG=en_US.ISO-8859-1 sup" it now detects the new encoding, and the messages are more readable, but I can not see the right characters because my terminal enconding is UTF-8 (but at least the sentences are not truncated). With Mutt (and other email clients), I still use UTF-8 as my system encoding, and I see ISO-8859-1 messages correctly. The encoding of the messages is of course included in the headers. 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. Would it possible to decode each message according to its headers? Please correct me if I am wrong in any of my assumptions on how Sup encodes/decodes messages. By the way, I am using the Git version of Sup (as of today :-). Cheers, Israel