🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #47046

Re: Header encoding

#47046
From: Jeroen Scheerder
Date: Thu, 04 Mar 1999 00:00
101 lines
6438 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr>:

> > Sorry, but that simply isn't true.  Although the "upper half" should
> > pose no problem, the null character definitely will.
> 
> But the null character is useless and never used.

It occurs in Unicode multibyte charsets, doesn't it?

> > In which case it's pretty much bound to be unable to cope with the
> > myriad of native character encodings as well.
> 
> This is not true. There are more newsreaders able to cope with 8-bit
> ISO-8859-1 (the *only* character encoding tollerated on fr.*) than
> newsreaders able to cope with MIME stuff.

Maybe so.  But fr.* isn't *.*, and Latin1 doesn't cut it.

I guess for local, or internal, hierarchies with a strictly local (and
enforced) charset rule, there's no real interpretation problem.

But as far as I know not may newsreaders are designed to function only
in fr.*.  They're more general-purpose tools, and the underlying
standards need a little more generality; working well in hierarchies
that happen to have no problem with the particular hard-coded encoding
isn't enough for the general case of newsreading.

> > I don't remember having said anything about html.  The one usefule
> 
> But you've said that 1036 inherited from 822 and its extensions (e.g.
> MIME stuff). HTML is one of them.

Yes, and both with and without allowing MIME, html (that is, if it's
html that isn't too badly broken in its character encoding) is valid
content.  If you recognize MIME, there's the option of treating it as
HTML.  If you don't, its just bad ASCII art; either way, it's a Usenet
message.

And either way, using it on Usenet is bad practice, of course.  In
either option not because it's violating Usenet format (neither is btoa,
binhex, uuencode or base64 encoding, for that matter); they're
undesirable and in general frowned upon for other reasons.

> > At best, one could claim that the MIME headers do *not* inherit a
> > meaning.  In which case the offending articles still will not be invalid
> > (in the sense that they violate the message format definition).  The
> > difference in that case would be merely that a few headers happen to
> > exist in Usenet messages that have no meaning there -- which is both
> > common and allowed.
> 
> It depends on the headers. For instance, when you post 8-bit ISO-8859-1
> in newsgroups where only this encoding is tollerated, the MIME headers
> MIME-Version, Content-Type and CTE won't make the message unreadable.
> But QP in headers will.

No, the QP in the header -- stuff of the type

  encoded-word  = "=?" charset "?" encoding "?" codes "?="
  charset       = 1*tag-char
  encoding      = 1*tag-char
  tag-char      = <ASCII printable character except !()<>@,;:\"[]/?=>
  codes         = 1*code-char
  code-char     = <ASCII printable character except ?>

will not render entire messages unreadable.  Only the header containing
the encoding, and only in readers that fail to treat it correctly.

As you may know, this definition is taken from Henry Spencer's (expired)
son-of-1036 draft, dating back as far as 93-94.  Although that draft
never was submitted to the IEEE for acceptance, it has been a guiding
document (and a vast improvement upon 1036) for a long time.  Of course
USEFOR should be the focus of current newsreader development, probably,
but 1036/son-of-136 have been important guides for quite some time.

Six years sounds like a reasonable amount of time to get a grip on this
to me; but I'll be the first to admit that old software lingers, and
that software longevity is a factor to be reckoned with.

It's not that I'm arguing that QP encoding is a good thing.  It isn't.
But still, the fact is, for the general case of Usenet, 8-bit characters
in headers are simply problematic.  For Usenet as a whole, there is no
-- excepting future UTF-8 -- sensible global choice for an encoding.
There is no "one size fits all" in the ISO-Latin family, and no way of
indicating header encoding (and body encoding: only by MIME charset
specification).  QP doesn't win beauty contests, and does have drawbacks
for unadapted or poorly designed software, but at least it solves the
problem -- in the only way it *can* be solved, for Usenet as a whole,
and not specific to the conventions of a specific hierarchy or single
newsgroup.

I don't think we disagree; in fact, the main point here could be the
agreement that there _is_ a problem here, currently, with no painless
current solution.  Let's pray for Unicode relief.


-- J$
-- 
dash dash space
this is my .sig                                         it's not so .big

Technical Details
Message-ID: <1do4dj5.1at9lvq17jcksN@medusa.cwi.nl>
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!not-for-mail
References: <gnksa_918342001@naka.org> <1dmtwx7.vv6lio128jjduN@cordelia-121.cableol.net> <7a6gi3$8t8$1@zingo.tninet.se> <1dn84nk.a64e11cikwb1N@medusa.cwi.nl> <7anidv$4qb$1@zingo.tninet.se> <smfr-2002991817220001@h-208-12-39-133.mcom.com> <1dnjq22.ffq6ygsyw89bN@roxboro0-058.dyn.interpath.net> <1dnkoy1.1hmra6y1ub8lp8N@n32-178.berlin.snafu.de> <1dnl1rc.1gzgdgql9jqs0N@roxboro0-047.dyn.interpath.net> <1dnmrt5.1gfmy0hgrwgcqN@n35-19.berlin.snafu.de> <1dnmel2.ib1rd2eb2cw9N@roxboro0-055.dyn.interpath.net> <1dnn4te.qy5voojl6rhN@n65-34.berlin.snafu.de> <slrn7d51kd.o16.bubulle@mykerinos.kheops.frmug.org> <1dns76i.p7aa2g11uzmxgN@medusa.cwi.nl> <7b9ug3$690$2@zingo.tninet.se> <1dnyk7p.1391hv31bx4tryN@medusa.cwi.nl> <48dbe685ffVincent.Lefevre@pm-vlefevre.ens-lyon.fr> <1do1lts.27crt0fv1dpmN@medusa.cwi.nl> <48dcaaf1b6Vincent.Lefevre@pm-vlefevre.ens-lyon.fr> <1do389c.rpu5481fhy737N@medusa.cwi.nl> <48dd2494fbVincent.Lefevre@pm-vlefevre.ens-lyon.fr>

Show Full Headers
Complete Article Headers
Message-ID: <1do4dj5.1at9lvq17jcksN@medusa.cwi.nl>
Subject: Re: Header encoding
Date: Thu, 04 Mar 1999 00:00:00 +0000
From: js@cwi.nl (Jeroen Scheerder)
References: <gnksa_918342001@naka.org> <1dmtwx7.vv6lio128jjduN@cordelia-121.cableol.net> <7a6gi3$8t8$1@zingo.tninet.se> <1dn84nk.a64e11cikwb1N@medusa.cwi.nl> <7anidv$4qb$1@zingo.tninet.se> <smfr-2002991817220001@h-208-12-39-133.mcom.com> <1dnjq22.ffq6ygsyw89bN@roxboro0-058.dyn.interpath.net> <1dnkoy1.1hmra6y1ub8lp8N@n32-178.berlin.snafu.de> <1dnl1rc.1gzgdgql9jqs0N@roxboro0-047.dyn.interpath.net> <1dnmrt5.1gfmy0hgrwgcqN@n35-19.berlin.snafu.de> <1dnmel2.ib1rd2eb2cw9N@roxboro0-055.dyn.interpath.net> <1dnn4te.qy5voojl6rhN@n65-34.berlin.snafu.de> <slrn7d51kd.o16.bubulle@mykerinos.kheops.frmug.org> <1dns76i.p7aa2g11uzmxgN@medusa.cwi.nl> <7b9ug3$690$2@zingo.tninet.se> <1dnyk7p.1391hv31bx4tryN@medusa.cwi.nl> <48dbe685ffVincent.Lefevre@pm-vlefevre.ens-lyon.fr> <1do1lts.27crt0fv1dpmN@medusa.cwi.nl> <48dcaaf1b6Vincent.Lefevre@pm-vlefevre.ens-lyon.fr> <1do389c.rpu5481fhy737N@medusa.cwi.nl> <48dd2494fbVincent.Lefevre@pm-vlefevre.ens-lyon.fr>
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!not-for-mail
X-Deja-AN: 450979513
X-NNTP-Posting-Host: 5dyn229.utr.casema.net [212.64.11.229]
Sender: js@5dyn229.utr.casema.net
Mail-Copies-To: nobody
X-XS4ALL-Date: Thu, 04 Mar 1999 02:25:36 CET
X-XS4ALL-User: js
X-Face: (u%,<Ek_K4]BW;*pmlV&,Ev+p0W0hHt,PZs7\2OV%HhTE5\$\MU79J|bQB_m3G"n ,Mz'Pb6*(Z~Wr\GkY`X<!RfA0%7R
Organization: Al-Munqidh min-al-Dalaal
User-Agent: MacSOUP/2.4
Newsgroups: news.software.readers