[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Pan-users] Where do I set the encoding for reading/writing posts?
From: |
Jim Henderson |
Subject: |
Re: [Pan-users] Where do I set the encoding for reading/writing posts? |
Date: |
Thu, 12 May 2011 16:53:54 +0000 (UTC) |
User-agent: |
Pan/0.133 (House of Butterflies) |
On Thu, 12 May 2011 13:19:52 +0200, Per Hedeland wrote:
> Jim Henderson <address@hidden> wrote:
>>
>>I've got a post in a private group on the server in question that's mis-
>>encoded as 8859-1, but the subject line shows correctly in Greek, but
>>the message body is garbage.
>
> JFYI, if encoded at all, encoding of headers in News (and mail) is
> "self-describing", the Content-Type/Content-Transfer-Encoding headers
> only pertain to the body (parts) - this is to avoid the client program
> having to read all header lines before displaying any of them. E.g. you
> can have something like this:
>
> Subject: =?utf-8?B?QmVrcsOkZnRlbHNl?= Content-Type: text/plain;
> charset=utf-8 Content-Transfer-Encoding: 8bit
>
> Where the Subject is utf-8 base64-encoded, while the body is "raw"
> utf-8. Of course this also allows for the encoding or charset to be
> correctly specified for header lines but incorrectly specified for the
> body - e.g. if the above had charset=iso-8859-1 in the Content-Type
> header even though the body actually *was* utf-8, the result would
> probably be what you're seeing.
Yeah, that's my guess as well.
Jim
--
Jim Henderson
Please keep on-topic replies on the list so everyone benefits