🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #47118

Re: non-ASCII characters in headers

#47118
From: 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.

Technical Details
Message-ID: <8D8240F2Yazorman@news.algonet.se>
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-2002991911320001@h-208-12-39-133.mcom.com> <1dnkn3i.1c6pt13xcbwcuN@n37-29.berlin.snafu.de> <7ba04v$690$5@zingo.tninet.se> <1dnzouh.ot7c5z11i3wz2N@n243-169.berlin.snafu.de>

Show Full Headers
Complete Article Headers
Message-ID: <8D8240F2Yazorman@news.algonet.se>
Subject: Re: non-ASCII characters in headers
Date: Sat, 06 Mar 1999 00:00:00 +0000
From: Erland Sommarskog <sommar@algonet.se>
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-2002991911320001@h-208-12-39-133.mcom.com> <1dnkn3i.1c6pt13xcbwcuN@n37-29.berlin.snafu.de> <7ba04v$690$5@zingo.tninet.se> <1dnzouh.ot7c5z11i3wz2N@n243-169.berlin.snafu.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!not-for-mail
X-Deja-AN: 452042231
X-Complaints-To: abuse@algo.net
X-Trace: cubacola.tninet.se 920763524 10731 195.163.78.161 (6 Mar 1999 23:38:44 GMT)
Organization: BRF Beckasinen 13
User-Agent: Xnews/2.03.02
NNTP-Posting-Date: 6 Mar 1999 23:38:44 GMT
Newsgroups: news.software.readers