🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
14 messages
14 total messages Started by Stefan Kurth Fri, 07 Jun 1996 00:00
What about 8-bit in *headers*?
#22537
Author: Stefan Kurth
Date: Fri, 07 Jun 1996 00:00
22 lines
1389 bytes
Ok, so it seems that pretty much everyone (except Felix) agrees that
using unencoded 8-bit characters is fine in bodies of news articles, as
long as there's a Content-Type header that specifies the character set.

But what about article headers?  The current version of my newsreader
always uses 1522 encoding when a header contains non-ASCII characters,
but several users complained about this and would prefer to use
unencoded 8-bit, with a default of ISO Latin-1.  This clearly violates
the RFCs, but it seems to be common practice.  Trouble is, unlike
message bodies you can't specify a character set in headers unless you
use 1522 encoding.  One way to handle this would be to use unencoded
8-bit when the character set is ISO-8859-1, and 1522 encoding for all
other character sets.  What do you think?


-- 
Stefan Kurth
Berlin, Germany
http://www.inx.de/~stk/

Re: What about 8-bit in *headers*?
#22542
Author: Brian Edmonds
Date: Fri, 07 Jun 1996 00:00
37 lines
2565 bytes
>>>>> "Stefan" == Stefan Kurth <stk@berlin.snafu.de> writes:

Stefan> Ok, so it seems that pretty much everyone (except Felix) agrees
Stefan> that using unencoded 8-bit characters is fine in bodies of news
Stefan> articles, as long as there's a Content-Type header that
Stefan> specifies the character set.

Nope.  RFC977 does not address this, and RFC1036 defers to RFC822 for
the format of its messages.  In RFC822 we find:

     message     =  fields *( CRLF *text )       ; Everything after
                                                 ;  first null line
                                                 ;  is message body

Fair enough so far, so lets see how the body is defined:

     text        =  <any CHAR, including bare    ; => atoms, specials,
                     CR & bare LF, but NOT       ;  comments and
                     including CRLF>             ;  quoted-strings are
                                                 ;  NOT recognized.

So the telling definition should be that of CHAR, which we find is:

     CHAR        =  <any ASCII character>        ; (  0-177,  0.-127.)

Hmm, 0-127, seems to rule out 8-bit data pretty conclusively to me.  So
unless you can point to a later RFC that needlessly complicates this
simple and robust definition, 7-bit is where it's at.

---Compiler---KOR---Captain-Tyler---Riding-Bean---UY---/================
 Brian Edmonds (MSc CompSci) aka Jubal@TMI            / *Gweep Systems* 
 http://www.cs.ubc.ca/spider/edmonds          ...PLO / System Consulting
---Holly-Cole-Trio---Amy-Grant---ZZ-Top---U2--REM---/___inux spoken here
But me and Pippi Longstocking, I mean what would the children look like?

Re: What about 8-bit in *headers*?
#22546
Author: Tim Pierce
Date: Fri, 07 Jun 1996 00:00
16 lines
1269 bytes
In article <1996060721042094549@pppx144.berlin.snafu.de>,
Stefan Kurth <stk@berlin.snafu.de> wrote:

>Ok, so it seems that pretty much everyone (except Felix) agrees that
>using unencoded 8-bit characters is fine in bodies of news articles,

Sigh.  You take a break for a week, and no one remembers your
name.

-- 
By sending unsolicited commercially-oriented e-mail to this address, the 
sender agrees to pay a $100 flat fee to the recipient for proofreading 
services.

Re: What about 8-bit in *headers*?
#22570
Author: Sven Guckes
Date: Sat, 08 Jun 1996 00:00
11 lines
795 bytes
stk@berlin.snafu.de (Stefan Kurth):
> what about [8bit] article headers?  [...] What do you think?

"Just say NO!"  :-)

Sven



Re: What about 8-bit in *headers*?
#22590
Author: David Woolley
Date: Sun, 09 Jun 1996 00:00
23 lines
1611 bytes
In article <1996060721042094549@pppx144.berlin.snafu.de>,
Stefan Kurth <stk@berlin.snafu.de> wrote:

>8-bit when the character set is ISO-8859-1, and 1522 encoding for all
>other character sets.  What do you think?

You would have a better case for CN-GB (Chinese), although I think this
is pure 16 bit.  (We already get some headers with names in an ASCII 
compatible Chinese encoding, and I suspect ISO 8859/1 looks as much 
gibberish to the Taiwanese readers as his name looks to the European
user.)

Any default to ISO 8859/1 is Western European chauvinist.

If you want an non-English character set, you would be better going for
UTF8, the UNICODE encoding which has an identity, 8 bit, mapping for
ASCII.  You will have the same problems in getting readers to support
this as getting them to support QP, or 1522.
-- 
David Woolley, London, England          david@djwhome.demon.co.uk

Re: What about 8-bit in *headers*?
#22592
Author: Erland Sommarskog
Date: Sun, 09 Jun 1996 00:00
29 lines
1963 bytes
Ha scritto stk@berlin.snafu.de (Stefan Kurth):
>But what about article headers?  The current version of my newsreader
>always uses 1522 encoding when a header contains non-ASCII characters,
>but several users complained about this and would prefer to use
>unencoded 8-bit, with a default of ISO Latin-1.  This clearly violates
>the RFCs, but it seems to be common practice.  Trouble is, unlike
>message bodies you can't specify a character set in headers unless you
>use 1522 encoding.  One way to handle this would be to use unencoded
>8-bit when the character set is ISO-8859-1, and 1522 encoding for all
>other character sets.  What do you think?

I suppose the 1522 encoding is the =?Q thing, which only has one
advantage: it makes regular QP look nice.

That encoding should be avoided at all costs. Yes, you don't know which
character set it is in, but if read Swedish newsgroups I assume it is
Latin-1 and if I read a Polish newsgroup I assume it is Latin-2. (This,
by the way, also demonstrates why the MIME headers are fairly useless.
They are often wrong, but I as a human have no problem to see which
character set is being used anyway.)


--
Erland Sommarskog, Stockholm, sommar@algonet.se
F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.

Re: What about 8-bit in *headers*?
#22597
Author: Wolfgang Schelongowski
Date: Sun, 09 Jun 1996 00:00
37 lines
2066 bytes
In <37hgsn1go9.fsf@salvator.cs.ubc.ca>
 Brian Edmonds <bedmonds@cs.ubc.ca> writes:

>>>>>> "Stefan" == Stefan Kurth <stk@berlin.snafu.de> writes:

>Stefan> Ok, so it seems that pretty much everyone (except Felix) agrees
>Stefan> that using unencoded 8-bit characters is fine in bodies of news
>Stefan> articles, as long as there's a Content-Type header that
>Stefan> specifies the character set.

>Nope.  RFC977 does not address this, and RFC1036 defers to RFC822 for
>the format of its messages.  In RFC822 we find:

>So the telling definition should be that of CHAR, which we find is:

>     CHAR        =  <any ASCII character>        ; (  0-177,  0.-127.)

Include ASCII 0 in an article (after clearing that with your news admin !) 
and see what happens. 

>Hmm, 0-127, seems to rule out 8-bit data pretty conclusively to me.  So
>unless you can point to a later RFC that needlessly complicates this
>simple and robust definition, 7-bit is where it's at.

RFC1521/1522. 7-bit works only for English speaking people. Since you 
live in Canada you ought to know about Quebec libr� and all that.

Of course in headers you need QP (ecch), or you'll repeat the
USASCII <-> ISO8859-1 discussion in a few years as ISO8859-1 <->
(whatever) discussion.
-- 
Wolfgang Schelongowski  ws@xivic.ruhr.de

Mustela locuta, causa finita.   (With apologies to St. Chris)

Re: What about 8-bit in *headers*?
#22624
Author: Martin Schmachtel
Date: Mon, 10 Jun 1996 00:00
38 lines
2094 bytes
In <4pfkgh$gdv@epimetheus.algonet.se>, Erland Sommarskog <sommar@algonet.se> wrote:
>
>I suppose the 1522 encoding is the =?Q thing, which only has one
>advantage: it makes regular QP look nice.
>
>That encoding should be avoided at all costs. 

Using 8bit characters in headers should be avoided at all costs. 
If you don't want to encode them, then don't allow 8bit characters at all.

There are agreements about using 8bit characters in bodys of usenet 
messages withing certain hierarchies (with or without specifying a charset,
the 'Umlaute im deutschen Usenet FAQ' from Kosta Kostis (posted regularly
in de.comp.standards and de.answers) says you *should* specify a charset, 
and if you do not you should at least use iso-8859-1) - there is even 
a passage about this in son-of-rfc-1036.

But I know of no agreement about using 8bit characters in headers. If I
recall correctly the 'Umlaute im deutschen Usenet FAQ' explicitly said
you may not use them. I can imagine similar rules in other hierarchies.
In BIG-8 there's still 'no 8bit at all'.

This seems to be widely accepted - almost every time I have seen people
posting with 8bit garbage in headers there was someone who told them 
not to use these. 

8bit in headers is a no-go.

ciaole
schmadde

-- 
http://userpage.fu-berlin.de/~huette/prenzlnet/
Check it out!


Re: What about 8-bit in *headers*?
#22636
Author: Stefan Kurth
Date: Mon, 10 Jun 1996 00:00
18 lines
1117 bytes
Erland Sommarskog <sommar@algonet.se> wrote:

> That encoding should be avoided at all costs. Yes, you don't know which
> character set it is in, but if read Swedish newsgroups I assume it is
> Latin-1 and if I read a Polish newsgroup I assume it is Latin-2.

The encoding is not only used for Subject headers, but also for From,
Organization, etc.  What if a Swede (with non-ASCII characters in his
From header) posts in a Polish newsgroup?


-- 
Stefan Kurth
Berlin, Germany
http://www.inx.de/~stk/

Re: What about 8-bit in *headers*?
#22641
Author: SO Kwok Tsun
Date: Tue, 11 Jun 1996 00:00
23 lines
1494 bytes
schmadde@prenzlnet.in-berlin.de (Martin Schmachtel) writes:

>This seems to be widely accepted - almost every time I have seen people
>posting with 8bit garbage in headers there was someone who told them 
>not to use these. 

>8bit in headers is a no-go.

It's rather different in Taiwan, mainland China and Hong Kong.  As we
use 8-bit to communicate with each other only.  It's really not
necessary to encode the headers.

BTW, it's good to conform the standard.  However, it will be much better
if existing application can still be used transparently.  Otherwise, the
cost is just too high.

--
SO Kwok Tsun                              [Ĭ��T]
Information Technology Service Unit, CUHK [���䤤��j�Ǹ�T��ުA�ȳB]
Email: ktso@cuhk.edu.hk

Re: What about 8-bit in *headers*?
#22645
Author: Felix von Leitner
Date: Tue, 11 Jun 1996 00:00
50 lines
2253 bytes
-----BEGIN PGP SIGNED MESSAGE-----

On Sun, 09 Jun 96 22:51:43 GMT, Erland Sommarskog <sommar@algonet.se> wrote:
> I suppose the 1522 encoding is the =?Q thing, which only has one
> advantage: it makes regular QP look nice.

Hahaha!  I *knew* this man has some kind of humor somewhere down there ;)

> That encoding should be avoided at all costs.

I find it pretty ugly, too.  But I switched to software that decodes
this ugly encoding and so I don't have your hole war problem any more.

> Yes, you don't know which character set it is in, but if read Swedish
> newsgroups I assume it is Latin-1 and if I read a Polish newsgroup I
> assume it is Latin-2.

And if a German posts to a Polish newsgroup?
(Hey, this is just an example, don't say that German posters are killed
 by default!)

> (This, by the way, also demonstrates why the MIME headers are fairly
> useless.  They are often wrong, but I as a human have no problem to
> see which character set is being used anyway.)

Not the MIME headers are wrong.  The headers are right, but they may be
incorrect.

Felix


-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1

iQCVAwUBMb3tjx/Da1Yoy+f1AQHNxwP/bcLmHFXJCOW6DKhBajp+ApIJvNwizfeK
Xuv6b4PFLqL+bHwsBa9UEA33dpTHqsHdHgj0F7XXDzfj9XV/Qng2FX2SJ0X38Jcz
2ZXdE5qIDRx8w1uuoHa74tSaX7g/Me8pwWcB0ubcq6OxhnAmOzlXaCEriYhMlpUY
2wnyctiMiFY=
=1QLZ
-----END PGP SIGNATURE-----

-- 
That's the thing about people who think they hate computers.  What they
really hate is lousy programmers.
	--Larry Niven and Jerry Pournelle in "Oath of Fealty"


Re: What about 8-bit in *headers*?
#22682
Author: Sven Guckes
Date: Wed, 12 Jun 1996 00:00
14 lines
981 bytes
leitner@xorn.prz.tu-berlin.de (Felix von Leitner):
> The headers are right, but they may be incorrect.

Yeah, right.

Sven

-- 
" The headers are right, but they may be incorrect."
- Felix von Leitner   leitner@xorn.prz.tu-berlin.de


Re: What about 8-bit in *headers*?
#22816
Author: Paul Mack
Date: Fri, 14 Jun 1996 00:00
64 lines
3135 bytes
Respondence with SO Kwok Tsun <ktso@decmgt.csc.cuhk.edu.hk> ...

G'day SO,

On Tue, 11 Jun 1996 01:58:16 GMT,
you wrote to everyone via usenet ...

[X]
> It's rather different in Taiwan, mainland China and Hong Kong.  As we
> use 8-bit to communicate with each other only.  It's really not
> necessary to encode the headers.

Imagine if every citizen of each country took this selfish attitude,
since there are 7 bit encodings for nearly all languages ...

[X]
> BTW, it's good to conform the standard. However, it will be much better

Try reading rfc1842 re ASCII Printable Characters-Based Chinese
Character Encoding for Internet Messages and rfc1922 re Chinese
Character Encoding for Internet Messages

To quote a little from rfc1842:

---
   forums with considerable success. Future extensions of this encoding
   method can accommodate additional GB character sets and other east
   asian language character sets [Wei94].

   The name given to this encoding is "HZ-GB-2312", which is intended to
   be used in the "charset" parameter field of MIME headers (see [MIME1]
   and [MIME2]).
---

To quote a little from rfc1922:

---
1.1.  Description

   ISO-2022-CN is based on ISO 2022 [ISO-2022], similar to earlier work
   on ISO-2022-JP [RFC-1468] and ISO-2022-KR [RFC-1557] for the Japanese
   and Korean languages respectively.  It is 7-bit, and supports both
   simplified Chinese characters using GB 2312-80 [GB-2312] and
   traditional Chinese characters using the first two planes of CNS
   11643 [CNS-11643], as well as ASCII [ASCII] characters.

   ISO-2022-CN-EXT is a superset of ISO-2022-CN that additionally
   supports other GB character sets and planes of CNS 11643.

   Since ISO-2022-CN and ISO-2022-CN-EXT are 7-bit encodings, they do
   not require the 8-bit SMTP extensions.  ISO-2022-CN supports all the
   Chinese characters that appear in Big5 [BIG5].
---

Regards, Paul.

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: Paul Mack <paulmack@minerva.dialix.oz.au> :::: Melbourne - Australia ::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

>> If you don't care where you at ... you ain't yet lost ... <<

Re: What about 8-bit in *headers*?
#22928
Author: Erland Sommarskog
Date: Sun, 16 Jun 1996 00:00
27 lines
1888 bytes
Ha scritto stk@berlin.snafu.de (Stefan Kurth):
>The encoding is not only used for Subject headers, but also for From,
>Organization, etc.  What if a Swede (with non-ASCII characters in his
>From header) posts in a Polish newsgroup?

If his name contains � (dotted A), or O (dotted O) they will appear
the same for Latin-2 users. � (A-ring) will come out as L with acute
accent. It will look strange, but it will be a lot more readable than
?Qiso-latin-1?=E5 (or in whatever way it should be written.)

By the way, did I tell you about the Norwegian guy I saw over in
alt.music.deep-purple? His newsreader had put in that gibberish
in the name field, and guess what it said? That's right, it claimed
to be coded in Latin-2! And not that I know what his name was, one
should note that while � and � are available in Latin-2 as well,
Norwegian uses � (AE digraph) and � (slashed O) that are not available
in Latin-2. What never have happened if the newsreader had not encoded
his name.


--
Erland Sommarskog, Stockholm, sommar@algonet.se
F=F6r =F6vrigt anser jag att QP b=F6r f=F6rst=F6ras.
B=65sid=65s, I think QP should b=65 d=65stroy=65d.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads