On Sat, May 11, 2002 at 11:59:15AM +0200, Rocco Rutte wrote: > > it's quite natural that heading of a message be written in the same > > language as the message body. For that reason I often get letters > > with subject lines or "From" fields in Russian encoded in some > > encoding including codes for Cyrillic characters. But there is a > > problem handling such headers. Since there are lines in message > > headers specifying message body encoding, mutt can do (and it does!) > > right conversion to the display charset. But it does never convert > > header lines to match my terminal encoding and as a result I always > > get garbage on the screen instead of Cyrillic letters.
> Headers have to encoded word by word if there's something in them, > which has to encoded. What do you mean, Rocco? Any special encoding? Please explain me how non-ascii characters should be written in the headers? > Usually, you should see what character set was used to encode it. Usually encoding of the header coincide with the one of the body. But I don't know whether this is standards compliant behavior. > If there's something going wrong - as in your case - have a look at > 'iconv-hook'. At the moment I do not see any application of the `iconv-hook', it seems to me that the problem is not in that mutt cannot accomplish conversion on account of incorrect name of some encoding in my installation (all is correct here) but because it does not know how to treat symbols in the header. > > I wonder if the standards defining format of e-mail messages allow > > for usage of non-ASCII characters in mail headers. > > No, and that's why they have to be encoded. What do you mean by `being encoded'. ANY character we use is encoded in some way in a computer. The point is that ASCII is now a standard encoding while other encodings are not. Using ASCII we can say a program how the following text in a message should be encoded. > The character set for header encoding does not need to be the same as > for the body. Rocco, it's absolutely unclear for me how can I include non-ASCII characters in message headers the right way and say other clients how to interpret them. Yours sincerely, Andrey Urazov -- Pournelle must die! -- Samstag, Mai 11, 2002, 18:32:41 +0700 - Andrey R. Urazov (mailto:[EMAIL PROTECTED])
msg27977/pgp00000.pgp
Description: PGP signature