Article View: news.software.nntp
Article #88123Re: Charset in headers
From: Russ Allbery
Date: Sun, 12 Jan 2020 23:36
Date: Sun, 12 Jan 2020 23:36
34 lines
2105 bytes
2105 bytes
Borneq <borneq@antyspam.hidden.pl> writes:
> Sometimes partially unreadable:
> =?UTF-8?Q?Re=3a_Z=c5=82=c4=85cze_w_okolicy_procesora_Pentium_133?=
> -->Q
> sometimes unreadable
> =?utf-8?B?xbt5d2llYyA9PiBJbsW8eW5pZXIgc3lzdGVtb3d5IC0gTGludXggPD0=?=
> -->B
> can be other letter than Q or B?
I don't think any other encodings have been registered. See RFC 2047.
Ideally, the generating agent uses a heuristic to decide whether
quoted-printable (your first example) or base64 (your second example) is
better based on the number of encoded characters, but in practice a lot of
agents just always use base64 for UTF-8.
> also
> =?iso-8859-2?B ...
> This coding is only on headers, not in messages body?
The same encoding is also used in message bodies, but differently, since
for the body the characer set and encoding can be given in the headers
(and is). So the body contains only the bit after the third ? (namely the
encoded text). And, of course, the body doesn't have to transform spaces
into underscores for quoted-printable encoding.
--
Russ Allbery (eagle@eyrie.org) <https://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<https://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87y2uc458d.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<5e1bac55$0$17354$65785112@news.neostrada.pl>Show Full Headers
Complete Article Headers
Message-ID: <87y2uc458d.fsf@hope.eyrie.org> Subject: Re: Charset in headers Date: Sun, 12 Jan 2020 15:36:34 -0800 From: Russ Allbery <eagle@eyrie.org> References: <5e1bac55$0$17354$65785112@news.neostrada.pl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 34 Nntp-Posting-Host: hope.eyrie.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: usenet.stanford.edu 1578872194 14323 166.84.7.155 (12 Jan 2020 23:36:34 GMT) X-Complaints-To: action@cs.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cancel-Lock: sha1:de398SH1UjS84DwogV0dr7Hg5Gs=