🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #262335

Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?

#262335
From: Michael Bäuerle
Date: Thu, 05 Oct 2017 08:42
43 lines
3735 bytes
June Bug wrote:
> The date is 04/10/2017 11:04
> > 
> > Dialog always uses Unicode (UTF-16) internally. When sending, it looks at
> > your list of allowed charsets, and chooses the first one that can
> > accommodate all characters you used, then converts your message to that
> > charset and sends it.
> 
> Thanks. I guess that Dialog, when it converts the message to that charset,
> it then sets the header to that charset that it converted the message to.
> 
> Then I guess the newsreader on the other side of the equation which reads
> the message uses that header to figure out what the charset is?
> 
> Is that correct with respect to the headers?

Yes. The MIME headerfields are labels, which the receiving newsreader
uses to interpret the encoding of the body (normally this means it uses
the label from the header as the source and its own internal encoding
as the target encoding of a conversion operation on the body).

Because the labels in the MIME headerfields are valid only for the body,
a different system is used to encode characters (that cannot be encoded
with US-ASCII) inside the header itself, e.g. in the From or Subject
headerfields. This mechanism uses encoded-words according to RFC 2047:
<https://tools.ietf.org/html/rfc2047>
With this mechanism every encoded-word has directly attached its own
labels. Because 8bit data is not allowed in the header, encoded-words
always use a non-identity Transfer-Encoding ("Q" means Quoted-Printable
and "B" means Base64) on top. Example:

   =?ISO-8859-13?Q?=B4Test=A1?=
     ^^^^^^^^^^^ ^ ^^^^^^^^^^
          |      |     |
          |      |     +--------------> Data
          |      +--------------------> Transfer-Encoding
          +---------------------------> Charset

[Quotation mark is used as the field separator]

should be decoded by the receiving newsreader to:

   “Test”
Technical Details
Message-ID: <AABZ1fBZD00AAAej.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!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <oqesf0$1q6$1@gioia.aioe.org> <oqet10$2fh$1@gioia.aioe.org> <AABZy13wD4AAAAe+.A1.flnews@WStation5.stz-e.de> <oqga38$8j0$1@gioia.aioe.org> <oqgajq$9gr$1@gioia.aioe.org> <sandman-130970e08c9839d8070373124662a154@individual.net> <m5w64t4mq22h$.1d4xbo6h1fuhj$.dlg@40tude.net> <AABZz7A6DNsAAAZs.A1.flnews@Server4.micha.freeshell.org> <1g684du6pz1qu.elzhqt8tdtgk$.dlg@40tude.net> <AABZz76TDN8AAAZs.A1.flnews@Server4.micha.freeshell.org> <oqvjg9$12oo$1@gioia.aioe.org> <AABZ05DwFwkAAAuC.A1.flnews@Server4.micha.freeshell.org> <or09ie$c0q$1@gioia.aioe.org> <AABZ07TxFxcAAAuC.A1.flnews@Server4.micha.freeshell.org> <or338t$1405$1@gioia.aioe.org> <10njwipkp82bt$.jsyoaapzmtpk$.dlg@40tude.net> <or4c7u$17p2$1@gioia.aioe.org>

Show Full Headers
Complete Article Headers
Message-ID: <AABZ1fBZD00AAAej.A1.flnews@WStation5.stz-e.de>
Subject: Re: [dialog] What is the trick to get dialog to NOT replace curly quotes & apostrophes with cent signs?
Date: Thu, 5 Oct 2017 10:42:01 +0200
From: Michael Bäuerle <michael.baeuerle@stz-e.de>
References: <oqesf0$1q6$1@gioia.aioe.org> <oqet10$2fh$1@gioia.aioe.org> <AABZy13wD4AAAAe+.A1.flnews@WStation5.stz-e.de> <oqga38$8j0$1@gioia.aioe.org> <oqgajq$9gr$1@gioia.aioe.org> <sandman-130970e08c9839d8070373124662a154@individual.net> <m5w64t4mq22h$.1d4xbo6h1fuhj$.dlg@40tude.net> <AABZz7A6DNsAAAZs.A1.flnews@Server4.micha.freeshell.org> <1g684du6pz1qu.elzhqt8tdtgk$.dlg@40tude.net> <AABZz76TDN8AAAZs.A1.flnews@Server4.micha.freeshell.org> <oqvjg9$12oo$1@gioia.aioe.org> <AABZ05DwFwkAAAuC.A1.flnews@Server4.micha.freeshell.org> <or09ie$c0q$1@gioia.aioe.org> <AABZ07TxFxcAAAuC.A1.flnews@Server4.micha.freeshell.org> <or338t$1405$1@gioia.aioe.org> <10njwipkp82bt$.jsyoaapzmtpk$.dlg@40tude.net> <or4c7u$17p2$1@gioia.aioe.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Lines: 43
Reply-To: Michael Bäuerle <michael.baeuerle@gmx.net>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
X-Trace: individual.net nLKgwlTJzjyBjuEouSUn7A1sxm67MfAVCBpur0kdZ7ngtxp9Uv
X-Orig-Path: not-for-mail
Cancel-Lock: sha256:UqQpit9cs5b/xQu58bIWtnkKgwtsO3AyzuNt0W0AZn8= sha1:d7VxfdyueuuQ3RbtVW8tglp0Ymc=
Injection-Date: Thu, 5 Oct 2017 08:42:01 -0000
User-Agent: flnews/0.15pre24 (for NetBSD)
X-Received-Body-CRC: 1310827802
X-Received-Bytes: 3622