🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
158 messages
158 total messages Page 3 of 4 Started by Jeroen Scheerder Sun, 07 Feb 1999 00:00
Page 3 of 4 • 158 total messages
Re: Header encoding
#46908
Author: Erland Sommarskog
Date: Sat, 27 Feb 1999 00:00
36 lines
2517 bytes
stk@snafu.de (Stefan Haller) skriver:
>Yes, but this is only a problem for the user of that newsreader, and he
>is free to choose a more modern newsreader if it bothers him.

Why would a reader that understands RFC2047 be more "modern" than one 
which don't? And, more importantly, would it be a better newsreader?

>One of the big advantages (and design goals) of RFC-2047 encoding is
>that even user agents and gateways that don't understand it will not
>mangle it; if a user of such a newsreader replies to an article, the
>subject line of his reply will still be ok 

It can't still be OK, if it wasn't OK in the first place.

Besides, you are talking about what mainly is a theoretical problem.
Yes, a few mail gateways can mangle things. But a newsreader that
doesn't grok 8-bits, is not understanding RFC2047 either, so what's
the use?

>In contrast, there are _lots_ of news readers and gateways that mangle
>plain 8-bit characters in headers while replying.  

Yes, and some newsreaders like MacSOUP are doing it on purpose. Few
are doing it by sheer ignorance though. 

The is simple: in so far RFC2047 is intended to be a cure, it is a lot
worse than the disease.



--
Erland Sommarskog, Stockholm, sommar@algonet.se
This could have been my two cents worth, but alas the Swedish
government has decided that I am not to have any cents.

Re: non-ASCII characters in headers (was Re: Good Net-Keeping Seal of Approval 2.0 (GNKSA 2.0) for Usenet Software)
#46910
Author: Erland Sommarskog
Date: Sat, 27 Feb 1999 00:00
37 lines
2746 bytes
stk@snafu.de (Stefan Haller) skriver:
>Simon Fraser <smfr@best.com> wrote:
>
>> So what's the current consensus on whether news user agents should
>> use MIME encoding for subject and author headers? I'm in the position
>> of working on a MIME-capable news client, and need to know. Should
>> this be under user control?
>
>No, this should not be under user control (yet).  Non-ASCII characters
>in headers MUST be encoded using encoded words as described in RFC 2047;
>otherwise there's no way for the reading agent to figure out what
>character set is being used.

Of course it should be under user control! There is no reason why a
fascistic newsreader author should cram down a certain behaviour down
the throat of his users. It's up to the user to decide who wants to
be flamed by. (And with the current state of affairs, the likelyhood
for being flamed for sending raw 8-bit in a Swedish newsgroup is 
about nil, while you will get complaints for the RFC2047 junk.)

And if you as a newsreader is really lazy and don't care to provide
such an option, it's still very simple: just send 8-bit. 


(Yes, one day there will be UTF-8? So what? I've been through the 
transition of Swedish posted in 7-bit to 8-bit without any MIME
encodings, so I guess I will manage the Latin-1 to UTF-8 transition
as well. After all, UTF-8 displayed as Latin-1 is less ugly than
QP or RFC2047. And a clever newsreader could do both; a text in
Latin-1 will simply not be valid UTF-8.)

--
Erland Sommarskog, Stockholm, sommar@algonet.se
This could have been my two cents worth, but alas the Swedish
government has decided that I am not to have any cents.

Re: Good Net-Keeping Seal of Approval 2.0 (GNKSA 2.0) for Usenet Software
#46915
Author: Erland Sommarskog
Date: Sat, 27 Feb 1999 00:00
24 lines
1811 bytes
"Robert Bj�rn" <rbj@home.se> skriver:
>I have to disagree with you -- strongly! (And I'm a Swede too.)
>The subjects are the same, but with a different encoding. 

Yeah, and the subject lines "R�ksm�rg�s" and "Skaldjursmacka" are
also the same, they're just synonyms.

>Wherever standards are available, they should be followed. 

But whether RFC2047 really is a standard for news is disputable. And,
in case, it is not a de facto standard. Whereas sending unencoded Latin-1
works about universally in Swedish contexts.

>Do you oppose using MIME encoding in e-mail as well? 

It rarely makes any sense. It often results in junk in my mailbox.


--
Erland Sommarskog, Stockholm, sommar@algonet.se
This could have been my two cents worth, but alas the Swedish
government has decided that I am not to have any cents.

Re: non-ASCII characters in headers
#46916
Author: Christian Feldhaus
Date: Sat, 27 Feb 1999 00:00
10 lines
1345 bytes
Hrvoje Niksic <hniksic@srce.hr> wrote:

> BTW, don't Netscape and Outlook support UTF-8?

Not sure about Netscape, but I use Outlook Express (OE 4.5 for Mac OS)
for e-mail a lot, and it does support UTF-8.

Christian

Re: Good Net-Keeping Seal of Approval 2.0 (GNKSA 2.0) for Usenet Software
#46922
Author: Christian Perrier
Date: Sat, 27 Feb 1999 00:00
10 lines
1462 bytes
Ralf D�blitz <Doeblitz@gmx.de> wrote :

>ISO-8859-1, code 255: �

lowercase, yes. Not uppercase....

-- 


Re: Header encoding
#46925
Author: Ron Newman
Date: Sun, 28 Feb 1999 00:00
20 lines
1968 bytes
In article <1dnyk7p.1391hv31bx4tryN@medusa.cwi.nl>, js@cwi.nl (Jeroen
Scheerder) wrote:

> Erland Sommarskog <sommar@algonet.se>:
> 
> > There is probably more software out there that displays raw 8-bit
> > correctly than there is software that displays RFC2047 correctly.
> 
> The 8-bits characters you're talking about _have_ no interpretation
> whatsoever.  Hence, your notion of "displaying correctly" is a
> meaningless one.

He presumably means that they display correctly for the Swedish language,
i.e. in ISO-8859-1 character set.

-- 
Ron Newman             rnewman@thecia.net
http://www2.thecia.net/users/rnewman/

Re: Non-ASCII characters
#46928
Author: Vincent Lefevre
Date: Sun, 28 Feb 1999 00:00
19 lines
2306 bytes
In article <1dnxyli.1677yxnjbxxogN@pec-0-189.tnt1.s2.uunet.de>,
   Christian Feldhaus <cfeldhaus@knuut.de> wrote:

> Hmm. On the Mac, for example, � is $8C (hex) 140 (dec), � is $9A (hex)
> or 154 (dec), and they sure can be printed ... Or am I getting something
> wrong here?

They are not standard. Erland Sommarskog was speaking about standards.
AFAIK, characters 128-159 are not defined in ISO-8859-1 (if bit 8 is
stripped, they become control characters), and in Unicode they are
described as control characters (but are not defined).

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...

Re: Non-ASCII characters
#46932
Author: Christian Feldhaus
Date: Sun, 28 Feb 1999 00:00
16 lines
1813 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> wrote:

> They are not standard. Erland Sommarskog was speaking about standards.

Wait a second -- that's what I wanted to point out when I wrote, earlier
in thread, that >we just don't have a standard for that range of
characters< ...  Maybe I should have replaced the word "a standard" with
"one common standard" :-)

Christian

-- 
EU Citizens Vote Against Spam
<http://www.politik-digital.de/spam/>

Re: Non-ASCII characters
#46943
Author: Christian Feldhaus
Date: Sun, 28 Feb 1999 00:00
17 lines
1999 bytes
Erland Sommarskog <sommar@algonet.se> wrote:

> >In this context, the word "non-standard" is misleading -- we just don't
> >have a standard for that range of characters. 
> 
> For which range? We sure have a standard for the range 160-255. Actually,
> we have a couple of them, with Latin-1 being the most spread. As for the
> range 128-159 I don't know if the control characters are stadnardised,
> but at least there is a standard saying that they are non-printable.

Hmm. On the Mac, for example, � is $8C (hex) 140 (dec), � is $9A (hex)
or 154 (dec), and they sure can be printed ... Or am I getting something
wrong here?

Christian

Re: Non-ASCII characters (was: Re: Good Net-Keeping Seal of Approval 2.0 (GNKSA 2.0) for Usenet Software)
#46945
Author: Ron Newman
Date: Sun, 28 Feb 1999 00:00
20 lines
2137 bytes
In article <1dnvsz4.xa53471kudoxN@medusa.cwi.nl>, js@cwi.nl (Jeroen
Scheerder) wrote:

> You can indicate any character encoding for the message body, but not
> the encoding used in the headers.  (In what encoding would you interpret
> the header indicating the encoding?)  And, forgive me if I'm wrong, this
> discussion started as a discussion about how to deal with the current
> limits *in headers*.

You could use one specific header to designate what encoding is used
in all the other headers.

I'm just saying that in the *absence* of any such designation, you may
as well assume ISO-8859-1.

-- 
Ron Newman             rnewman@thecia.net
http://www2.thecia.net/users/rnewman/

Re: Non-ASCII characters
#46950
Author: Christian Feldhaus
Date: Mon, 01 Mar 1999 00:00
19 lines
2193 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> wrote:

> There are standards for this range of characters. They say that these
> characters are undefined.

Must admit that I am far from being an expert as far as character sets
are concerned :-) I just know that, when I get a text file with accented
characters from a Windows user (on a PC-formatted floppy) and open it on
a Mac, the "non-ASCII" letters are replaced by other characters. Of
course this does not happen if the same text is sent, for example, in
the body of a MIME encoded and properly "declared" e-mail message.
That's why I wonder which standards you are referring to ...

Christian
-- 
EU Citizens Vote Against Spam
<http://www.politik-digital.de/spam/>

Re: Header encoding
#46954
Author: Jeroen Scheerder
Date: Mon, 01 Mar 1999 00:00
19 lines
2000 bytes
Erland Sommarskog <sommar@algonet.se>:

> There is probably more software out there that displays raw 8-bit
> correctly than there is software that displays RFC2047 correctly.

The 8-bits characters you're talking about _have_ no interpretation
whatsoever.  Hence, your notion of "displaying correctly" is a
meaningless one.

The RFC2047 explicit encoding does actually have an interpretation,
however.


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

Re: non-ASCII characters in headers
#46956
Author: Stefan Haller
Date: Mon, 01 Mar 1999 00:00
20 lines
1479 bytes
Erland Sommarskog <sommar@algonet.se> wrote:

> And a clever newsreader could do both; a text in
> Latin-1 will simply not be valid UTF-8.

I don't think this is true.  It is possible to come up with a sequence
of 8-bit characters that would be valid Latin-1 and valid UTF-8.

However, in most real-world cases you are probably right.  The idea to
treat all invalid UTF-8 text as Latin-1 is an interesting one, and
should do the right thing in most cases.  However, I doubt that many
newsreaders will implement such a technique.


-- 
Stefan Haller
Berlin, Germany
http://www.snafu.de/~stk/

Re: Non-ASCII characters (was: Re: Good Net-Keeping Seal of Approval 2.0 (GNKSA 2.0) for Usenet Software)
#46958
Author: Shmuel (Seymour J.) Metz
Date: Mon, 01 Mar 1999 00:00
28 lines
2429 bytes
In <rnewman-ya02408000R2802991248540001@enews.newsguy.com>, on
02/28/1999
   at 12:48 PM, rnewman@thecia.net (Ron Newman) said:

>I'm just saying that in the *absence* of any such designation, you
>may as well assume ISO-8859-1.

Which is no good for countries that don't use Latin1, while UTF-8 *is*
universal.

--
-----------------------------------------------------------
     Shmuel (Seymour J.) Metz, SysProg and JOAT
     Atid/2
     Team OS/2
     Team PL/I

Any unsolicited commercial junk E-mail will be subject to legal
action.  I reserve the right to publicly post or ridicule any abusive
E-mail.

I mangled my E-mail address to foil automated spammers; reply to
domain acm dot org user shmuel to contact me.  Do not reply to
spamtrap@library.lspace.org
-----------------------------------------------------------


Re: Non-ASCII characters
#46963
Author: Vincent Lefevre
Date: Mon, 01 Mar 1999 00:00
18 lines
2226 bytes
In article <1dnyk9y.17mv2ok1qk39toN@pec-1-225.tnt1.s2.uunet.de>,
   Christian Feldhaus <cfeldhaus@knuut.de> wrote:

> Wait a second -- that's what I wanted to point out when I wrote, earlier
> in thread, that >we just don't have a standard for that range of
> characters< ...  Maybe I should have replaced the word "a standard" with
> "one common standard" :-)

There are standards for this range of characters. They say that these
characters are undefined.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...

Re: Header encoding
#46964
Author: Vincent Lefevre
Date: Mon, 01 Mar 1999 00:00
21 lines
2157 bytes
In article <1dnyk7p.1391hv31bx4tryN@medusa.cwi.nl>,
   Jeroen Scheerder <js@cwi.nl> wrote:

> The RFC2047 explicit encoding does actually have an interpretation,
> however.

But RFC2047 is for the mail only. So, encoded characters have no
interpretation for Usenet messages.

8-bit characters have an implicit interpretation is hierarchies
(e.g. fr.*) where only ISO-8859-1 is tollerated. And there are more
newsreaders that can display them than newsreaders that can parse
RFC2047 headers.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...

Re: non-ASCII characters in headers
#46969
Author: Per Abrahamsen
Date: Tue, 02 Mar 1999 00:00
12 lines
2051 bytes
Hrvoje Niksic <hniksic@srce.hr> writes:

> My point is that Gnus generates syntactically correct MIME, but is
> misusing the "multipart" feature for a thing it was never designed
> for.  

Actually, I believe Gnus is using MIME mulitipart for text with
multiple character sets exactly the way it was designed to be used.
At least, that was the impression I get from reading the MIME
specification, although I can't find it stated explictly anywhere.

Re: Non-ASCII characters
#46971
Author: Stefan Haller
Date: Tue, 02 Mar 1999 00:00
15 lines
1753 bytes
Jeroen Scheerder <js@cwi.nl> wrote:

> I guess this is the time to come up with the US$59.95 for acquiring the
> Unicode Standard book that contains the appendix describing UTF-8 in
> full.

RFC 2279 should do.


-- 
Stefan Haller
Berlin, Germany
http://www.snafu.de/~stk/

Re: Header encoding
#46973
Author: Jeroen Scheerder
Date: Tue, 02 Mar 1999 00:00
28 lines
2589 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr>:

> > The RFC2047 explicit encoding does actually have an interpretation,
> > however.
> 
> But RFC2047 is for the mail only. So, encoded characters have no
> interpretation for Usenet messages.

Actually, as far as I recall, the underlying idea about the Usenet
Message Format as defined in 1036 is that it is defined by inheritance
from 822.  Differences exist where either explicit local definitions
override 822, or where local additions (Usenet-specific headers, and zo
on) occur.

Now 822 got extended and subsumed of course, including the MIME-stuff,
but one could argue that the inheritence-relation still holds.  That
seems to be the prevailing notion, anyway.  And maybe the root of the
mistake of not distinguishing between mail and news at all, but all too
easily dispatching everything off to a single unified message handling
engine...


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

Re: Non-ASCII characters
#46977
Author: Drazen Kacar
Date: Tue, 02 Mar 1999 00:00
15 lines
2335 bytes
Jeroen Scheerder wrote:

> I guess this is the time to come up with the US$59.95 for acquiring the
> Unicode Standard book that contains the appendix describing UTF-8 in
> full.

Or to read RFC which describes it.

-- 
 .-.   .-.    Life is a sexually transmitted disease.
(_  \ /  _)
     |        dave@srce.hr
     |        dave@fly.cc.fer.hr

Re: Non-ASCII characters
#46983
Author: Stefan Haller
Date: Tue, 02 Mar 1999 00:00
14 lines
1728 bytes
Jeroen Scheerder <js@cwi.nl> wrote:

> A big question of course is whether UTF-8 will suffice.  At first
> glance, I'm inclined to think probably not;

Why not?


-- 
Stefan Haller
Berlin, Germany
http://www.snafu.de/~stk/

Re: non-ASCII characters in headers
#46988
Author: Lars Magne Ingebrigtsen
Date: Tue, 02 Mar 1999 00:00
24 lines
2603 bytes
Per Abrahamsen <abraham@dina.kvl.dk> writes:

> Actually, I believe Gnus is using MIME mulitipart for text with
> multiple character sets exactly the way it was designed to be used.
> At least, that was the impression I get from reading the MIME
> specification, although I can't find it stated explictly anywhere.

I had a closer look at my, er, MIME test archive (which I received
from, er, someone).  There are several messages from Borenstein there,
so I'm guessing (based on that and some of the chatter in the
messages) that what I have are the test messages they were sending out
while working on the MIME RFCs (and the initial MIME implementations).
And in there, there are examples of messages that use several
text/plain parts with different charsets (mainly us-ascii and
iso-8859-8).

But I guess we could ask.  :-)  Where do the MIME people hang out
these days?  

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@ifi.uio.no * Lars Magne Ingebrigtsen

Re: Non-ASCII characters
#46991
Author: Jeroen Scheerder
Date: Tue, 02 Mar 1999 00:00
53 lines
4043 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr>:

> > [..] Maybe I should have replaced the word "a standard" with "one common
> > standard" :-)
> 
> There are standards for this range of characters. They say that these
> characters are undefined.

To have a clear, unambiguous definition it is necessary to have _one_
interpretation.  In current Usenet Message Format that happens to be
ANSI X3.4, with only half of the character range defined.

Then there is a family of ISO charsets, usable in message bodies by
means of indication of character encoding via the MIME mechanism.  A
family of charsets that, although the lower half of the range coincides,
differ substantially in the upper half.

There's simply no way of knowing what character is referenced, if such a
character code -- undefined in X 3.4, multiple definitions in ISO's
"Latin" (8859-1...8859-15) family, probably more definitions outside
Latin (why not?) -- occurs.  You just cannot tell.

One could try to propose any of the following:
    1 assume ISO-8859-1 as the de facto standard instead of X3.4
    2 use the body encoding (which one, for a multipart message?) to
      interpret the headers
    3 add a separate header for indication of header encoding
Aside from the fact that such a proposal would have to receive
overwhelming support by newsreader authors, and get widely adapted,
before one could start to depend on it (even moderately), all three are
problematic.

(1) simply won't cut it.  X3.4 is too limited, arguably -- and so is
8859-1.  Not much gain, for so much pain.  (2) is fussy, intransparent,
and problematic for `nonstandard' (i.e. platformspecific) encodings.
(3) has been talked about at length, and I see no need to redo that.

Furthermore, from a pragmatic point of view: 1-3 aren't going to happen.
Unicode's UTF-8 is.  Until that arrives, we're pretty much tied to the
legacy of ANSI X3.4, like we've always been.

A big question of course is whether UTF-8 will suffice.  At first
glance, I'm inclined to think probably not; and I'm not acquanted with
any proposed (conceptually sound) way of clearly and unambiguously
making generic Unicode header encoding possible.


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

Re: Non-ASCII characters
#46997
Author: Jeroen Scheerder
Date: Tue, 02 Mar 1999 00:00
23 lines
2478 bytes
Stefan Haller <stk@snafu.de>:

> > A big question of course is whether UTF-8 will suffice.  At first
> > glance, I'm inclined to think probably not;
> 
> Why not?

Probably because my first glance was too shallow, leading to a wrong
impression on my account.  I mistook UTF-8 for an overly conservative
extension to ISO10646, but now I'm looking deeper into it, it looks like
UTF-8 should suffice.

I guess this is the time to come up with the US$59.95 for acquiring the
Unicode Standard book that contains the appendix describing UTF-8 in
full.


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

Re: Header encoding
#47001
Author: Vincent Lefevre
Date: Tue, 02 Mar 1999 00:00
34 lines
2819 bytes
In article <1do1lts.27crt0fv1dpmN@medusa.cwi.nl>,
   Jeroen Scheerder <js@cwi.nl> wrote:

> Actually, as far as I recall, the underlying idea about the Usenet
> Message Format as defined in 1036 is that it is defined by inheritance
> from 822.  Differences exist where either explicit local definitions
> override 822, or where local additions (Usenet-specific headers, and zo
> on) occur.

> Now 822 got extended and subsumed of course, including the MIME-stuff,
> but one could argue that the inheritence-relation still holds.  That

No, because

1) some of the MIME-stuff is useless on Usenet (all software is 8-bit
clean),

2) distribution is wider, you don't know who will read your messages:
readers may have old hardware/software that isn't capable of decoding
MIME stuff. Moreover, things like HTML would take much more bandwidth
and would not be that useful.

> seems to be the prevailing notion, anyway.  And maybe the root of the
> mistake of not distinguishing between mail and news at all, but all too
> easily dispatching everything off to a single unified message handling
> engine...

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...

Re: Header encoding
#47004
Author: Ron Newman
Date: Wed, 03 Mar 1999 00:00
23 lines
2314 bytes
In article <1do389c.rpu5481fhy737N@medusa.cwi.nl>, js@cwi.nl (Jeroen
Scheerder) wrote:

> > 1) some of the MIME-stuff is useless on Usenet (all software is 8-bit
> > clean),
> 
> Sorry, but that simply isn't true.  Although the "upper half" should
> pose no problem, the null character definitely will.

Null characters aren't part of 8-bit character sets either.  After all,
null has the 8th bit set to 0 also.

> I don't remember having said anything about html.  The one usefule
> MIME-bit I was referring to, was the indication of character encoding.
> Without it, all bets are off.  And its scope is the message body only.

Why not simply extend its scope to also cover all of the other headers?

-- 
Ron Newman             rnewman@thecia.net
http://www2.thecia.net/users/rnewman/

Re: Header encoding
#47005
Author: Vincent Lefevre
Date: Wed, 03 Mar 1999 00:00
39 lines
3172 bytes
In article <1do389c.rpu5481fhy737N@medusa.cwi.nl>,
   Jeroen Scheerder <js@cwi.nl> wrote:

> 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.

> 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.

> 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.

> 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.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...

Re: Header encoding
#47010
Author: John Moreno
Date: Wed, 03 Mar 1999 00:00
23 lines
2513 bytes
Ron Newman <rnewman@thecia.net> wrote:

> js@cwi.nl (Jeroen Scheerder) wrote:
-snip- 
> > I don't remember having said anything about html.  The one usefule
> > MIME-bit I was referring to, was the indication of character
> > encoding. Without it, all bets are off.  And its scope is the
> > message body only.
> 
> Why not simply extend its scope to also cover all of the other
> headers?

Because there is almost certainly going to be differences in encoding,
someone from France posting to a Russian group -- the body will be
K-something but the accents on the name will be Latin-1.

-- 
John Moreno
YA-NewsWatcher 4.1.2 is out! Get it from these sites:
* NewsreadersCom - <URL:http://www.newsreaders.com/mac/yanw>
* NW Central     - <URL:http://www.tss.no/%7Elink/NewsWatcher/>

Re: Non-ASCII characters
#47016
Author: Sylvan Butler
Date: Wed, 03 Mar 1999 00:00
24 lines
2391 bytes
On Tue, 2 Mar 1999 21:17:27 +0100, Stefan Haller <stk@snafu.de> wrote:
>Jeroen Scheerder <js@cwi.nl> wrote:
>
>> I guess this is the time to come up with the US$59.95 for acquiring the
>> Unicode Standard book that contains the appendix describing UTF-8 in
>> full.
>
>RFC 2279 should do.

And perhaps:
  ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO/charsets/ISO-10646-UTF-8.html

There may also be some information available on www.unicode.org

sdb

-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
 "Don't Tread On Me!"

Re: Header encoding
#47026
Author: Vincent Lefevre
Date: Wed, 03 Mar 1999 00:00
17 lines
2323 bytes
In article <030319991023490281%planb@newsreaders.com>,
   John Moreno <planb@newsreaders.com> wrote:

> Because there is almost certainly going to be differences in encoding,
> someone from France posting to a Russian group -- the body will be
> K-something but the accents on the name will be Latin-1.

But he won't be able to write his name in the body. Why would we allow
to write one's name in the headers but not in the body?

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...

Re: Header encoding
#47030
Author: John Moreno
Date: Wed, 03 Mar 1999 00:00
17 lines
2170 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> wrote:

>    John Moreno <planb@newsreaders.com> wrote:
> 
> > Because there is almost certainly going to be differences in encoding,
> > someone from France posting to a Russian group -- the body will be
> > K-something but the accents on the name will be Latin-1.
> 
> But he won't be able to write his name in the body. Why would we allow
> to write one's name in the headers but not in the body?

Which is why I say UTF-8 for both!

-- 
John Moreno

Re: Header encoding
#47039
Author: Jeroen Scheerder
Date: Wed, 03 Mar 1999 00:00
57 lines
4008 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr>:

> > Now 822 got extended and subsumed of course, including the MIME-stuff,
> > but one could argue that the inheritence-relation still holds.  That
> 
> No, because
> 
> 1) some of the MIME-stuff is useless on Usenet (all software is 8-bit
> clean),

Sorry, but that simply isn't true.  Although the "upper half" should
pose no problem, the null character definitely will.

> 2) distribution is wider, you don't know who will read your messages:
> readers may have old hardware/software that isn't capable of decoding
> MIME stuff.

In which case it's pretty much bound to be unable to cope with the
myriad of native character encodings as well.

> Moreover, things like HTML would take much more bandwidth
> and would not be that useful.

I don't remember having said anything about html.  The one usefule
MIME-bit I was referring to, was the indication of character encoding.
Without it, all bets are off.  And its scope is the message body only.

Within the protocol, there is a plethora of ways of doing obnoxious
things on usenet.  Popular ones.  Abusing it as a backup/warez
distribution medium (posting binaries); posting in encodings proprietary
to particular software (the quasi-HTML generated by some
tools&nbsp;of&nbsp;horror), to mention a few popular ones.

All these things are, or can be done, within ANSIx3.4 encoding, even.
Garbage though they be, they happen to make correct (even if garbled)
Usenet messages.

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.

The messages won't be MIME-messages anymore -- but they'll still be
there.  In practice, most clients either are too old to know about MIME,
or know about it, but lack the skill to do anything with it, or
recognize it an try to handle it.  I've seen no software know about MIME
headers, and deliberately refuse them as void in Usenet articles. 


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

Re: Header encoding
#47046
Author: 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

Re: Header encoding
#47082
Author: Vincent Lefevre
Date: Thu, 04 Mar 1999 00:00
89 lines
5321 bytes
In article <1do4dj5.1at9lvq17jcksN@medusa.cwi.nl>,
   Jeroen Scheerder <js@cwi.nl> wrote:

> > But the null character is useless and never used.

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

But not in ISO-8859-1. If we use this encoding, QP is useless.

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

The rules may be different for different hierarchies. I don't think that
if I use my own local charset, other users will be happy with it. So,
there are restrictions, depending on the hierarchies. In fr.*, following
the RFCs is (almost) sufficient.

> 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.*.

Many of them only support a restricted number of charsets. Some of them
don't support MIME.

> 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.

> 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.

But without MIME, the text will generally be unreadable and contrary
to the netiquette.

>  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.

It's the same problem concerning QP encoding (either in the body or in
the headers).

> No, the QP in the header -- stuff of the type
<snip>
> will not render entire messages unreadable.  Only the header containing
> the encoding, and only in readers that fail to treat it correctly.

Yes, but people usually read the subject before reading the messages.
So, having a readable subject is *very* important. Moreover, some
newsreaders supporting MIME are broken and the subject is sometimes
slightly modified, making threading wrong.

> 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

They shouldn't be. If you want to specify the charset, you could, and
there is no need of QP (except in very rare cases), and this could be
compatible with old software.

> -- excepting future UTF-8 -- sensible global choice for an encoding.

It could be local in some cases (e.g. most of the time in fr.*).

> 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,

For the moment, it solves it very badly.

> and not specific to the conventions of a specific hierarchy or single
> newsgroup.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...

Re: Non-ASCII characters
#47087
Author: Jeroen Scheerder
Date: Thu, 04 Mar 1999 00:00
22 lines
2310 bytes
Sylvan Butler <nospam+_no_Zs__9903@hpb13799z.zboi.hpz.com.invalid>:

[utf-8 details]

> >RFC 2279 should do.
> 
> And perhaps:
> ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO/charsets/ISO-10646-UTF-8.html
> 
> There may also be some information available on www.unicode.org

Not really.  It suggests ordering the Unicode Standard Book, of which
only the index can be found (as far as I could see) on the web.  UTF-8
description: Appendix A. :-)


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

Re: Non-ASCII characters
#47096
Author: Sylvan Butler
Date: Fri, 05 Mar 1999 00:00
23 lines
2566 bytes
On Thu, 4 Mar 1999 01:45:20 +0100, Jeroen Scheerder <js@cwi.nl> wrote:
>Sylvan Butler <nospam+_no_Zs__9903@hpb13799z.zboi.hpz.com.invalid>:
>> There may also be some information available on www.unicode.org
>
>Not really.  It suggests ordering the Unicode Standard Book, of which

Bummer.  I have the book (version 2.0).  A.2 in the 2nd paragraph
states, "UTF-8 is described in ISO/IEC 10646 AM1.  It is available in
electronic form via the unicode.org World Wide Web Page and the
unicode.org FTP archive (see Section 1.6, Resources, for addresses)."

Section 1.6 merely states the obvious http://www.unicode.org and
ftp://unicode.org .

sdb
-- 
 | Sylvan Butler | Not speaking for Hewlett-Packard | sbutler-boi.hp.com |
 | Watch out for my e-mail address. Thank UCE.   #### change ^ to @ #### |
    They that can give up essential liberty to obtain a little temporary
    safety deserve neither liberty nor safety. --Benjamin Franklin, 1759
 "Don't Tread On Me!"

Re: Header encoding
#47099
Author: Jeroen Scheerder
Date: Fri, 05 Mar 1999 00:00
24 lines
2523 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr>:

Let's leave it at this; with no difference of opinion remaining, the
only open point seems to be the very start of the discussion:

> If you want to specify the charset, you could,

...which is true, _except for the encoding used for the headers_.  And
that (not body encoding issues) was what caused this discussion, I
recall, not some remark about character encoding in general.

>                                                 and there is no need of
> QP (except in very rare cases) [..]

Fair enough.  But the header representation that uses `explicit charset
encoding' isn't QP.


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

Re: Header encoding
#47110
Author: Vincent Lefevre
Date: Fri, 05 Mar 1999 00:00
20 lines
2438 bytes
In article <1do7jc8.18ycg3ind7uigN@medusa.cwi.nl>,
   Jeroen Scheerder <js@cwi.nl> wrote:

> Fair enough.  But the header representation that uses `explicit charset
> encoding' isn't QP.

I don't understand what you mean. Software that uses explicit charset
information always encodes 8-bit characters in QP or Base64. With a
new format where we would have the subject (with no encoding), then
the used charset, there wouldn't be any problem with old software
(they would only display garbage at the end of the subject, but that's
all).

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...

Re: Header encoding
#47113
Author: Erland Sommarskog
Date: Sat, 06 Mar 1999 00:00
40 lines
3369 bytes
Scrive Jeroen Scheerder (js@cwi.nl):
>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.

And? The same newsreader would display Latin-1 in France and
Latin-2 in Poland, because the user would choose different font
settings.

>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.

And not all software that does not support the RFC2047 crap are
old software that did not exist six years ago. Take a hint on
whether RFC2047 is really useful or not.

>QP doesn't win beauty contests, and does have drawbacks for unadapted or 
>poorly designed software, but at least it solves the problem  

... and becomes a problem in itself. 

Sure, if we just display raw 8-bit, a Frenchman posting in a Polish
newsgroup will have his name garbled in the Polish newsreader,
presumably configured for Latin-2. So what? His name appears 
garbled in far more postings today, thanks to RFC2047.

>-- in the only way it *can* be solved, for Usenet as a whole,

No, the only solution is universal use of UTF-8. QP aimes to
solve one problem, but the cure is far more worse than the cure.

-- 
Erland Sommarskog, Stockholm, sommar@algonet.se
This could have been my two cents worth, but alas the Swedish
government has decided that I am not to have any cents.

Re: Header encoding
#47116
Author: Erland Sommarskog
Date: Sat, 06 Mar 1999 00:00
32 lines
2651 bytes
Scrive Jeroen Scheerder (js@cwi.nl):
>Erland Sommarskog <sommar@algonet.se>:
>
>> There is probably more software out there that displays raw 8-bit
>> correctly than there is software that displays RFC2047 correctly.
>
>The 8-bits characters you're talking about _have_ no interpretation
>whatsoever.  Hence, your notion of "displaying correctly" is a
>meaningless one.

I have to say that you continue to amaze me. Are you on drugs or
what? You mean, if I see the string "Belgi�" with out any RFC2047 
mumbo-jumbo around it, I am stupid fool to interpret this as the
name of a European country, written in one of its official languages?

Get real. The 8-bit characters do have an interpretation. If they
hadn't, we wouldn't use them, would we?

>The RFC2047 explicit encoding does actually have an interpretation,
>however.

Not in all cases. Particularly not when the encoding is not QP,
but Base-64. In this case the text definitely lacks interpretation 
for the human reader. (Although it appears that the human reader 
is not of interest to you.)

-- 
Erland Sommarskog, Stockholm, sommar@algonet.se
This could have been my two cents worth, but alas the Swedish
government has decided that I am not to have any cents.

Re: non-ASCII characters in headers
#47118
Author: Erland Sommarskog
Date: Sat, 06 Mar 1999 00:00
32 lines
2434 bytes
Scrive Stefan Haller (stk@snafu.de):
>Erland Sommarskog <sommar@algonet.se> wrote:
>> And a clever newsreader could do both; a text in
>> Latin-1 will simply not be valid UTF-8.
>
>I don't think this is true.  It is possible to come up with a sequence
>of 8-bit characters that would be valid Latin-1 and valid UTF-8.

Of course, most UTF-8 strings would also be valid Latin-1 strings.
(The exception would be those that contains bytes in the control-
character range.) But it would be rare if they made sense in
both charsets. 

The reverse is certainly not true. Most real-world Latin-1 texts 
would probably not pass as legal UTF-8.

>However, in most real-world cases you are probably right.  The idea to
>treat all invalid UTF-8 text as Latin-1 is an interesting one, and
>should do the right thing in most cases.  However, I doubt that many
>newsreaders will implement such a technique.

Yes and no. In real life the newsreaders will be exposed to
Latin-1 (and Latin-2 etc) texts, which they will try to decode
as UTF-8. If they don't to crash in the middle, reverting to
an old-fashioned 8-bit charset would likely to reduce the traffic
from confused users.
-- 
Erland Sommarskog, Stockholm, sommar@algonet.se
This could have been my two cents worth, but alas the Swedish
government has decided that I am not to have any cents.

Re: Header encoding
#47121
Author: Stefan Haller
Date: Sat, 06 Mar 1999 00:00
23 lines
2305 bytes
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> wrote:

> With a new format where we would have the subject (with no encoding), then
> the used charset, there wouldn't be any problem with old software (they
> would only display garbage at the end of the subject, but that's all).

Such a format might work for unstructured headers like subject, but not
for structured headers such as From.  In a From header, only the real
name part(s) of the header may specify a character set; the addr-spec
part(s) must always be ASCII.

The guys who invented RFC 2047 spent a good deal of thought on how to
ensure compatibility with old software; trust them.  What they came up
with might not be pretty, but it's the only way not to break old
software.


-- 
Stefan Haller
Berlin, Germany
http://www.snafu.de/~stk/

Re: Non-ASCII characters
#47123
Author: Erland Sommarskog
Date: Sat, 06 Mar 1999 00:00
44 lines
3520 bytes
Scrive Jeroen Scheerder (js@cwi.nl):
>There's simply no way of knowing what character is referenced, if such a
>character code -- undefined in X 3.4, multiple definitions in ISO's
>"Latin" (8859-1...8859-15) family, probably more definitions outside
>Latin (why not?) -- occurs.  You just cannot tell.

You mean if someone presents me a text with characters beyond
ASCII, I cannot tell in which charset it is? No problem I can.
First of all language is a good hint. If it's in Swedish, it is
not likely to be in Latin-3. It might be in CP-850 or Mac charset.
Which doesn't really matter, but I can read it, although it looks
ugly. If it's in Turkish it's surely in Latin-5. If it's in Russian, 
it's more tricky, because it might be in KOI-8, Windows-1251 or
iso-8859-5 (although the latter probably only appears in theory).
I usually copy and paste into a file, and then view it from Netscape
where I can choose the character set.

Any, by the way, you cannot be sure which charset you're in, even
if you only have chars in the range 32-127. Guess which charset 
this is to be read in:

   r{ksm|rg}s

It isn't ASCII. But you can find articles that are written with
this charset, and has the proper charset in Content-Type.


>One could try to propose any of the following:
>    1 assume ISO-8859-1 as the de facto standard instead of X3.4
>    2 use the body encoding (which one, for a multipart message?) to
>      interpret the headers
>    3 add a separate header for indication of header encoding

Or simply in lieu of other information, display the text as is.
As demonstrated above, there are considerable chances that the
reader can make sense out of it.


-- 
Erland Sommarskog, Stockholm, sommar@algonet.se
This could have been my two cents worth, but alas the Swedish
government has decided that I am not to have any cents.

Re: Header encoding
#47125
Author: Vincent Lefevre
Date: Sat, 06 Mar 1999 00:00
26 lines
2684 bytes
In article <1do8r2j.715uad1ce57c2N@n31-169.berlin.snafu.de>,
   Stefan Haller <stk@snafu.de> wrote:

> Such a format might work for unstructured headers like subject, but not
> for structured headers such as From.  In a From header, only the real
> name part(s) of the header may specify a character set; the addr-spec
> part(s) must always be ASCII.

OK, but this new format could be only valid when the charset is a
superset of ASCII, like the ISO-8859-1 charset.

> The guys who invented RFC 2047 spent a good deal of thought on how to
> ensure compatibility with old software; trust them.  What they came up
> with might not be pretty, but it's the only way not to break old
> software.

No, this isn't true. In fr.*, I can see that RFC2047 headers do break
old software.

-- 
Vincent Lefevre <Vincent.Lefevre@ens-lyon.fr> - PhD stud. in Computer Science
Web: http://www.ens-lyon.fr/~vlefevre/ - 100% validated HTML - Acorn Risc PC,
Yellow Pig 17, Championnat International des Jeux Mathematiques et Logiques,
TETRHEX, Faits divers insolites, etc...

Re: Header encoding
#47127
Author: Erland Sommarskog
Date: Sat, 06 Mar 1999 00:00
15 lines
2217 bytes
Scrive Stefan Haller (stk@snafu.de):
>The guys who invented RFC 2047 spent a good deal of thought on how to
>ensure compatibility with old software; trust them.  What they came up
>with might not be pretty, but it's the only way not to break old
>software.

And the main problem with RFC2047 is precisely that it is not
compatible with old software.

-- 
Erland Sommarskog, Stockholm, sommar@algonet.se
This could have been my two cents worth, but alas the Swedish
government has decided that I am not to have any cents.

Re: Non-ASCII characters
#47128
Author: Erland Sommarskog
Date: Sat, 06 Mar 1999 00:00
27 lines
2704 bytes
Scrive Christian Feldhaus (cfeldhaus@knuut.de):
>Erland Sommarskog <sommar@algonet.se> wrote:
>> For which range? We sure have a standard for the range 160-255. Actually,
>> we have a couple of them, with Latin-1 being the most spread. As for the
>> range 128-159 I don't know if the control characters are stadnardised,
>> but at least there is a standard saying that they are non-printable.
>
>Hmm. On the Mac, for example, � is $8C (hex) 140 (dec), � is $9A (hex)
>or 154 (dec), and they sure can be printed ... Or am I getting something
>wrong here?

Yes, you think that the character codes on the Mac has anything
to do with standars. The Mac uses a proprietary character set,
which is not compatible with anything else outside the Mac world.

Windows also uses proprietary character sets, but in case of
Windows-1252, there is an agreement with Latin-1 in the range 
160-255. (But not 128-159 where Windows has characters that should 
not be there.) I don't think that Windows other charsets are 
fully compatible with the corresponding 8859 charsets.

-- 
Erland Sommarskog, Stockholm, sommar@algonet.se
This could have been my two cents worth, but alas the Swedish
government has decided that I am not to have any cents.

Re: Non-ASCII characters
#47133
Author: Jeroen Scheerder
Date: Sun, 07 Mar 1999 00:00
23 lines
2698 bytes
Erland Sommarskog <sommar@algonet.se>:

> >There's simply no way of knowing what character is referenced, if such a
> >character code -- undefined in X 3.4, multiple definitions in ISO's
> >"Latin" (8859-1...8859-15) family, probably more definitions outside
> >Latin (why not?) -- occurs.  You just cannot tell.
> 
> You mean if someone presents me a text with characters beyond
> ASCII, I cannot tell in which charset it is? No problem I can.

No.  I'm not talking about you personally.  I'm talking about
newsreading software.  And it's your newsreader that has to be able to
interpret, your newsreader that has to decode the characters, and your
newsreader may not exactly match your skill in recognizing languages,
and guestimating what according encoding might be used.


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

Re: Header encoding
#47136
Author: Stefan Haller
Date: Sun, 07 Mar 1999 00:00
21 lines
1917 bytes
Erland Sommarskog <sommar@algonet.se> wrote:

> Not in all cases. Particularly not when the encoding is not QP,
> but Base-64. In this case the text definitely lacks interpretation 
> for the human reader.

O god, how often do we have to explain this to you until you understand
it?  This encoded text is not _meant_ to be shown to a human reader.  It
is meant to be decoded by a user agent.  You just happen to be using a
user agent that can't do this, but this is entirely your problem, not
ours.

And this is no different whether QP or Base64 is used.


-- 
Stefan Haller
Berlin, Germany
http://www.snafu.de/~stk/

Re: Non-ASCII characters
#47137
Author: Drazen Kacar
Date: Sun, 07 Mar 1999 00:00
24 lines
2708 bytes
Erland Sommarskog wrote:

> Windows also uses proprietary character sets, but in case of
> Windows-1252, there is an agreement with Latin-1 in the range 
> 160-255. (But not 128-159 where Windows has characters that should 
> not be there.) I don't think that Windows other charsets are 
> fully compatible with the corresponding 8859 charsets.

Wrong. Utterly wrong. Microsoft, in thier infinite wisdom, made Windoze
charsets were made with only one idea in mind: to have copyright and
trademark characters at the same positions in all of them. ISO 8859
code pages were used as a base, but the characters were swapped, mixed,
left out or whatever, as they seen fit.

Windows-1252 is a superset of Latin 1, but Windows-1250 is not a superset
of Latin 2. All praise Microsoft!

-- 
 .-.   .-.    Life is a sexually transmitted disease.
(_  \ /  _)
     |        dave@srce.hr
     |        dave@fly.cc.fer.hr

Re: Non-ASCII characters
#47139
Author: Stefan Haller
Date: Sun, 07 Mar 1999 00:00
60 lines
4123 bytes
Erland Sommarskog <sommar@algonet.se> wrote:

> You mean if someone presents me a text with characters beyond
> ASCII, I cannot tell in which charset it is? No problem I can.
>
> I usually copy and paste into a file, and then view it from Netscape
> where I can choose the character set.

This is ridiculous.  We have machines that are smart enough to do this
for us, so let them do it (by using a protocol that carries the
necessary information along).  If you're willing to do this manually,
fine; I'm not, and I guess most of my users aren't either.

Consider an analogy: attaching a file to a mail message.  We could
simply tack the binary data to the end of the message and let the
receiver guess what it is.  It could be a piece of audio, so let's pipe
it through our .au player.  Ugh, it sounds like noise?  Well, maybe it
was a picture after all, so let's try piping it to out jpeg viewer.

This is just as ridiculous.  We have protocols that enable us to
transmit the information needed to unambiguously identify the type of
attachment, or the character set used in a header.  Let's use them.

Sure, if you send a mail message with an attached picture to someone who
doesn't have a MIME capable user agent, the receiver will see a lot of
Base64 junk and multipart boundaries etc.  That's why most mail user
agents have been made MIME capable nowadays.  I don't see why the same
evolution shouldn't be possible for news readers, except that there are
people like Erland who stubbornly struggle against this evolution for no
good reason.

> Any, by the way, you cannot be sure which charset you're in, even
> if you only have chars in the range 32-127.

Yes you can.  Unless explicitly specified otherwise, it's ASCII.

> Guess which charset this is to be read in:
> 
>    r{ksm|rg}s
> 
> It isn't ASCII. But you can find articles that are written with
> this charset, and has the proper charset in Content-Type.

Now you are talking about message bodies.  As long as you specify the
correct charset in the Content-Type header, this is no problem.  If you
don't, it's ASCII.

If you want to use that string in a header, and you want it to mean
"r�ksm�rg�s" rather than "r{ksm|rg}s", you must encode it according to
RFC 2047, specifying the correct charset to use (you can use the Q
encoding, but don't actually have to use quoted-printable characters in
this case because there are no 8-bit characters).


-- 
Stefan Haller
Berlin, Germany
http://www.snafu.de/~stk/

Page 3 of 4 • 158 total messages
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