🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #260753

Re: [Dialog] Unicode capabilities

#260753
From: Adam H. Kerman
Date: Sun, 17 Jul 2016 18:48
97 lines
4781 bytes
Michael <michael.baeuerle@gmx.net> wrote:
>Adam H. Kerman wrote:
>>Michael <michael.baeuerle@gmx.net> wrote:
>>>Adam H. Kerman wrote:

>>>>[...]

>>>If the "Content-Transfer-Encoding" header field is missing (which means
>>>the same as "7bit") or declare identity (the values "7bit" or "8bit"),
>>>then the declaration for the charset directly apply to the raw body.

>>I don't know what the client was suppose to do with the 7bit versus 8bit
>>declaration when reading an article.

>The "8bit" declaration can be used e.g. by a mail gateway that sends
>articles to a moderator via SMTP. If the target protocol can't handle
>"8bit", the gateway must convert the article (add a transfer-encoding in
>this case).

>UTF-7 was invented to avoid this problem for Unicode data, it can be
>labeled "7bit" and a gateway can transport it directly via SMTP (neither
>conversion nor SMTP extensions are required).

Is this an encoding technique? I'll have to look it up.

>>>Otherwise (for the values "Quoted-Printable" or "Base64") the declared
>>>transfer-encoding must be decoded first and the declaration of the
>>>charset apply to the result.

>>When QP encoding is used, is it supposed to declare 7bit or 8bit?

>If a real transfer encoding like QP is used, this transfer encoding
>must be labeled instead of "8bit" in the header. For QP the MIME defined
>label is "Quoted-Printable".

Ah. I could have sworn I've seen 7bit labeled, together with QP,
always from Google Groups users.

>>>Non-identity transfer encoding in the body is normally never used by
>>>real newsreaders, only by mail clients (because SMTP without extensions
>>>is a 7bit protocol).

>>>In other words:
>>>If there is no non-identity transfer encoding declared, the raw body and
>>>the charset declared in the "Content-Type" header field can be used as
>>>input and source character set for iconv.

>>I'm lost here. Are you talking about proprietary Microsoft crap like
>>Winmail.dat format?

>No. For an article with such fields in the header:

>   Content-Transfer-Encoding: 8bit
>   Content-Type: text/plain; Charset=UTF-8

>they mean "there is *no* transfer encoding used for the body, but it
>requires an 8bit capable transport protocol" and "the body uses UTF-8
>instead of the default US-ASCII encoding".

I see. Thanks.

>If the body uses UTF-7 encoding, the Content-Transfer-Encoding-Field can
>be omitted:

>   Content-Type: text/plain; Charset=UTF-7

>because the default "7bit" is sufficient for transport. There are other
>character sets like ISO 2022-JP (for Japanese) that don't require 8bit
>transport protocols.

Thanks.

>>>>Also, you just have to start by assuming that the character set declared
>>>>in the MIME header applies to the new portions of the body and not
>>>>the quoted portions.

>>>In the example article the locale of the user seem to be configured to
>>>use ISO 8859-1 encoding (anything typed into the text editor will get
>>>this encoding).

>>Are you talking about your trn4 example?

>Yes.

>>trn4 wouldn't check locale environmentvariables natively.

>But the text editor of a german user should do. If a script executed
>by trn prepares the data in the locales charset, the text editor should
>handle it correctly.

Fair enough. As I said, the script he'd modified just added MIME headers;
he wasn't checking.

>flnews do not guess (by intent - if it's broken, I want to see that
>it's broken).

Good.
Technical Details
Message-ID: <nmgju7$86o$2@news.albasani.net>
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: <nli1e8$hi6$1@news.mixmin.net> <AABXi1QnTH4AAEOm.A1.flnews@WStation4.micha.freeshell.org> <nmg79v$mik$1@news.albasani.net> <AABXi8bTOjsAAEyi.A1.flnews@WStation4.micha.freeshell.org>

Show Full Headers
Complete Article Headers
Message-ID: <nmgju7$86o$2@news.albasani.net>
Subject: Re: [Dialog] Unicode capabilities
Date: Sun, 17 Jul 2016 18:48:39 +0000
From: "Adam H. Kerman" <ahk@chinet.com>
References: <nli1e8$hi6$1@news.mixmin.net> <AABXi1QnTH4AAEOm.A1.flnews@WStation4.micha.freeshell.org> <nmg79v$mik$1@news.albasani.net> <AABXi8bTOjsAAEyi.A1.flnews@WStation4.micha.freeshell.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
Organization: albasani.net
Lines: 97
X-Trace: news.albasani.net 0sTTqpHOhAdNM+H8KbIitqOGj9xuQo4X5cJxAKnXZ2NQ/XnZEKYzYHvobhwutNyARRykGvFb0YbL7efiE0UEVBwWLeMijf17oRdcfe0VKnmuII17Li19vnIIwxRsoafD
NNTP-Posting-Date: Sun, 17 Jul 2016 18:48:39 +0000 (UTC)
Injection-Info: news.albasani.net; logging-data="T7eugfKOUSN+hVBmMWhaqn3ePXwOuakMArXWj+6tg7yeVxwY8OA1KMjcZcUgp4yweKWm1CQMbTgQzfCC5q8p/RsynJTefqqOhkD5KceHUlNg/4zof9DPDv6Ca+Db36xK"; mail-complaints-to="abuse@albasani.net"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Cancel-Lock: sha1:eL5qxXNEj/UVLnLR9OLpUEseVig=
X-Received-Body-CRC: 3313911091
X-Received-Bytes: 4731