🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #264307

Re: trn 4 and UTF-8

#264307
From: Michael Bäuerle
Date: Sat, 08 Aug 2020 09:59
72 lines
4097 bytes
Arlen Holder wrote:
> On Wed, 5 Aug 2020 22:33:05 -0000 (UTC), Arlen Holder wrote:
> > 
> > o <https://i.postimg.cc/TP0dsDyX/smartquote01.jpg>
> > 
> > For example, this is a cut-and-paste of what you wrote:
> >  "Michael B??uerle posted using an ISO-8859-1 mime-encoded word"
               ^^
This variant was UTF-8 encoded.

> > (where the "a" in his last name is xxx in vim)
> 
> [...]
> The correction is that section with the "xxx" should have been as follows:
> 
>    ==== cut here ====
> 
> o  <https://i.postimg.cc/TP0dsDyX/smartquote01.jpg>
> 
> For example, this is a cut-and-paste of what you wrote:
>  "Michael B?uerle posted using an ISO-8859-1 mime-encoded word"
             ^
This variant was ISO-8859-1 encoded.

>  (where the "a" in his last name is "decimal 228" in vim)
> 
>    ==== cut here ====
> 
> As shown in this new screenshot:
> o <https://i.postimg.cc/VkQ4Tx5p/smartquote02.jpg>

The question marks in my quotation above show that both variants
have not worked, because the default encoding for Usenet (and Mail)
is US-ASCII (it is not possible to encode 'ä' with US-ASCII).

MIME (RFC 2045 ... 2049) defines how to use a different encoding for
the message body. Example declaration from the header:
| 
| Mime-Version: 1.0
| Content-Transfer-Encoding: 8bit
| Content-Type: text/plain; charset=ISO-8859-1

The first line declares that it was the intention of the sender to
create a message in MIME format (required for MIME conformance according
to RFC 2049).

The second line declares that *no* Transfer-Encoding (like Base64 or
Quoted-Printable) was used! It is only a declaration that the used
encoding requires an 8-bit clean transport protocol. NNTP is 8-bit
clean, therefore a real Transfer-Encoding should only be required for
things like binary attachments (which are blocked by many news servers
anyway).

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

All MIME-conformant newsreaders will then correctly process your
article.


[Xpost reduced to <news:news.software.readers>]
-- 
Btw: wann kommt eigentlich das neue KDE-6 raus? KDE-5 läuft ja jetzt
schon einige Zeit stabil, da könnte man ja einer alten Tradition
folgend mal wieder von vorne anfangen.
                     Martin Schnitkemper in de.comp.os.unix.apps.kde
Technical Details
Message-ID: <AABfLnea1swAAAxm.A1.flnews@WStation7.micha.freeshell.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-mail
References: <rganif$m4h$1@neodome.net> <eli$2008051309@qaz.wtf> <rgeqfo$6qp$2@dont-email.me> <eli$2008051347@qaz.wtf> <eli$2008051651@qaz.wtf> <rgfc30$gm3$1@news.mixmin.net> <rgflse$7n2$1@news.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <AABfLnea1swAAAxm.A1.flnews@WStation7.micha.freeshell.org>
Subject: Re: trn 4 and UTF-8
Date: Sat, 08 Aug 2020 09:59:54 +0000
From: Michael Bäuerle <michael.baeuerle@gmx.net>
References: <rganif$m4h$1@neodome.net> <eli$2008051309@qaz.wtf> <rgeqfo$6qp$2@dont-email.me> <eli$2008051347@qaz.wtf> <eli$2008051651@qaz.wtf> <rgfc30$gm3$1@news.mixmin.net> <rgflse$7n2$1@news.mixmin.net>
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
Supersedes: <AABfLndB8sAAAAxm.A1.flnews@WStation7.micha.freeshell.org>
Organization: Wieslauf BBS
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 8 Aug 2020 09:59:54 -0000
Injection-Info: wieslauf.sub.de; logging-data="10215"; mail-complaints-to="usenet@wieslauf.sub.de"
User-Agent: flnews/0.18pre47 (for GNU/Linux)
Cancel-Key: sha256:wIP4uNUclBkX6UgBC4JKC4n5lhEFcKxblKfJ59XRVgU= sha256:zFf0ylZs4CUqjygBHIENivUjloo5EAGzyBfzE01iWww= sha1:HfUFOp2GFIrZ6swC9VeQBDoTlFs=
Cancel-Lock: sha256:PW+mlJxP9nRe28VQ0/D5J9gK38vAe+RYY/1IuuO+JiU= sha256:Rgq77Xi+gzxpfXIoohur5Udre62fRePlzFAQ95jB+lM= sha1:HDuF/GTATPOVHE2SUZQzkqti+ro=