Article View: news.software.readers
Article #264320Re: trn 4 and UTF-8
From: Michael Bäuerle
Date: Tue, 11 Aug 2020 09:47
Date: Tue, 11 Aug 2020 09:47
57 lines
3804 bytes
3804 bytes
Eli the Bearded wrote:
> In news.software.readers, Michael Bäuerle <michael.baeuerle@gmx.net> wrote:
> >
> > The third line is the one that declares what encoding was used for
> > the message body. MIME does not support multiple encodings for the
> > message body, therefore things like your examples quoted above are
> > not allowed. You (or your newsreader) have to:
> > 1) Choose *one* encoding
> > 2) Create, edit or convert the whole message body to use this encoding
> > 3) Declare this encoding in the "charset" parameter of the
> > "Content-Type" header field
>
> One caveat is that headers are generally limited to 7-bit encodings,
> hence the use of MIME-encoded words (RFC-2047) for including
> non-US-ASCII content in headers.
Yes, what I wrote above is only for the message body.
In groups that use english language it is unlikely that one need to
use RFC 2047. An exception are names (like in my case).
> [...]
> RFC-6532 message/global type allows UTF-8 (with high bits) in headers
<https://tools.ietf.org/html/rfc6532#section-3.7>
|
| Internationalized messages in this format MUST only be transmitted as
| authorized by [RFC6531] or within a non-SMTP environment that
^^^^^^^^^^^^^^^^^^^^^^^^^
First, it is questionable whether Usenet really is a "non-SMTP
environment". Think of moderation via mail.
| supports these messages. [...]
^^^^^^^^^^^^^^^^^^^^^^^
There is currently no "support" for this in general. RFC 5536 forbids it
at the top level of articles:
<https://tools.ietf.org/html/rfc5536#section-2.2>
|
| o The character set for header fields is US-ASCII. Where the use of
| non-ASCII characters is required, they MUST be encoded using the
| MIME mechanisms defined in [RFC2047] and [RFC2231].
"message/global" directly or as entity of "multipart" also has problems,
because of the potential transfer encoding. That is allowed by RFC 6532,
but it is not backward compatible with the original MIME definition in
RFC 2045: <https://tools.ietf.org/html/rfc2045#section-6.4>
|
| Certain Content-Transfer-Encoding values may only be used on certain
| media types. In particular, it is EXPRESSLY FORBIDDEN to use any
| encodings other than "7bit", "8bit", or "binary" with any composite
| media type, i.e. one that recursively includes other Content-Type
| fields. Currently the only composite media types are "multipart" and
| "message".
"message/global" with non-identity transfer encoding may break existing
MIME implementations. Therefore the part "supports these messages" above
is important.
Technical Details
Message-ID:
<AABfMmkwB8sAAAPl.A1.flnews@WStation5.stz-e.de>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:
<rganif$m4h$1@neodome.net> <rgfc30$gm3$1@news.mixmin.net> <rgflse$7n2$1@news.mixmin.net> <AABfLnea1swAAAxm.A1.flnews@WStation7.micha.freeshell.org> <eli$2008101448@qaz.wtf>Show Full Headers
Complete Article Headers
Message-ID: <AABfMmkwB8sAAAPl.A1.flnews@WStation5.stz-e.de> Subject: Re: trn 4 and UTF-8 Date: Tue, 11 Aug 2020 09:47:28 +0000 From: Michael Bäuerle <michael.baeuerle@stz-e.de> References: <rganif$m4h$1@neodome.net> <rgfc30$gm3$1@news.mixmin.net> <rgflse$7n2$1@news.mixmin.net> <AABfLnea1swAAAxm.A1.flnews@WStation7.micha.freeshell.org> <eli$2008101448@qaz.wtf> 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.readers Lines: 57 Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net Djb1DZ78bFVT+vaUpn4YAQEz8yl5SRejunPexByBsHCLF6aV37 X-Orig-Path: not-for-mail Cancel-Lock: sha1:2eVq4PpF9Hg8pEP2Kmt56Ci5TKA= sha256:JJhE/VHEipeg/GYxOXV/ZiWcLn1j9eWJljMvWJ9w0qs= sha1:CR2dJ1//mqyhresRuxoASTljZTc= Injection-Date: Tue, 11 Aug 2020 09:47:28 -0000 User-Agent: flnews/0.18pre47 (for NetBSD)