🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #111265

Re: Quick question on encoded words (RFC2048)

#111265
From: Jens Wahnes
Date: Thu, 10 Oct 2002 23:06
64 lines
3222 bytes
J.B. Moreno wrote:

> Marcus M�nnig <usenet-oct02@40tude.com> wrote:
>> With F6 being � in iso-8859-1 are these decodings correct, regarding space
>> between coded words? 

>> "=?iso-8859-1?Q?=F6?= =?iso-8859-1?Q?=F6?=" -> "��"

> No. "� �"

That's wrong.  "��" is correct.
All whitespace between two *adjacent* *encoded* *words* is to be deleted
when decoding RFC2047-encodings.

| When displaying a particular header field that contains multiple
| 'encoded-word's, any 'linear-white-space' that separates a pair of
| adjacent 'encoded-word's is ignored.  (This is to allow the use of
| multiple 'encoded-word's to represent long strings of unencoded text,
| without having to separate 'encoded-word's where spaces occur in the
| unencoded text.)

(RFC 2047)

>> "=?iso-8859-1?Q?=F6?=        =?iso-8859-1?Q?=F6?=" -> "��"
> Likewise.

Dito.  "��" is correct here, too.

>> "=?iso-8859-1?Q?=F6?=A=?iso-8859-1?Q?=F6?=" -> "�A�"

> Illegal encoding, space between encoded words required.

Sure, but one might want to decode this for "robustness principle"
reasons anyway.  There are some broken RFC 2047 implementations out
there that might generate such illegal encodings.

>> "=?iso-8859-1?Q?=F6?= A =?iso-8859-1?Q?=F6?=" -> "�A�"
> Nope.  "� A �".

I agree.

> (This is in fact one of the problems with chosing 2047 over UTF8, you
> can't mix and match symbols which aren't in the same charset without
> white space so "chinesename-versus-russianname" type constructs simply
> aren't allowed).

Of course that's possible with RFC2047-encoding.  One could use

Subject: =?gb2312?B?...blah...?= =?us-ascii?Q?-versus-?=
 =?koi8-r?B?...whatever...?=

for example.  (This is of course due to the fact that whitespace
between encoded words is to be deleted which you seem to have
overlooked.)  An 'RFC2047ized' UTF-8 encoding would be another
possibility.


Jens

-- 
"What is robbing a bank compared with founding a bank?"

        - Bertolt Brecht
Technical Details
Message-ID: <slrnaqc20i.ufn.nsr@message-id.wahnes-world.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.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!news.osn.de!newsfeed.completel.de!news.tesion.net!news.belwue.de!wahnes-world.de!not-for-mail
References: <1annht5anm35q.dlg@40tude.com> <1fju9ff.4wggfw1gvwhsdN%planB@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrnaqc20i.ufn.nsr@message-id.wahnes-world.de>
Subject: Re: Quick question on encoded words (RFC2048)
Date: Thu, 10 Oct 2002 23:06:58 +0000
From: Jens Wahnes <jewa@gmx.net>
References: <1annht5anm35q.dlg@40tude.com> <1fju9ff.4wggfw1gvwhsdN%planB@newsreaders.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!news.osn.de!newsfeed.completel.de!news.tesion.net!news.belwue.de!wahnes-world.de!not-for-mail
Newsgroups: news.software.readers
Organization: Wahnes World
Lines: 63
NNTP-Posting-Host: talkline42.rhrk.uni-kl.de
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.BelWue.DE 1034291349 20139 131.246.65.42 (10 Oct 2002 23:09:09 GMT)
X-Complaints-To: news@news.belwue.de
NNTP-Posting-Date: Thu, 10 Oct 2002 23:09:09 +0000 (UTC)
Cancel-Lock: sha1:WN+w961u7sh4JSbGZG8GcAwMFzU=
User-Agent: slrn/0.9.7.4pl1 (Linux)