🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #47139

Re: Non-ASCII characters

#47139
From: 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/

Technical Details
Message-ID: <1doau19.bo37a3lrdz4N@n32-167.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
References: <gnksa_918342001@naka.org> <1dmtwx7.vv6lio128jjduN@cordelia-121.cableol.net> <7a6gi3$8t8$1@zingo.tninet.se> <1dn84nk.a64e11cikwb1N@medusa.cwi.nl> <1dn843w.6r80331fwn59aN@cordelia-92.cableol.net> <1dn8ofh.1hgylbz9xaf9cN@[149.225.0.181]> <slrn7cipjg.3vs6p87.tksweden@face32.sto.telia.se> <barmar-1702990828540001@barmar.ne.mediaone.net> <NOSPAM-1802990237150001@1dyn91.utr.casema.net> <1dnf8w1.16l7een14shoziN@pec-1-170.tnt1.s2.uunet.de> <1dnfxx6.1v639em17e52gdN@cordelia-127.cableol.net> <1dng4sv.1r8d4rl10rwl2iN@pec-0-101.tnt1.s2.uunet.de> <7anhid$4ge$1@zingo.tninet.se> <1dnlar8.18brezvw7jzy8N@pec-0-186.tnt1.s2.uunet.de> <7b9tt3$690$1@zingo.tninet.se> <1dnxyli.1677yxnjbxxogN@pec-0-189.tnt1.s2.uunet.de> <48db80f9dbVincent.Lefevre@pm-vlefevre.ens-lyon.fr> <1dnyk9y.17mv2ok1qk39toN@pec-1-225.tnt1.s2.uunet.de> <48dbb4ac8bVincent.Lefevre@pm-vlefevre.ens-lyon.fr> <1do16nn.15rrdrjuxmmvyN@medusa.cwi.nl> <8D82D48DYazorman@news.algonet.se>

Show Full Headers
Complete Article Headers
Message-ID: <1doau19.bo37a3lrdz4N@n32-167.berlin.snafu.de>
Subject: Re: Non-ASCII characters
Date: Sun, 07 Mar 1999 00:00:00 +0000
From: stk@snafu.de (Stefan Haller)
References: <gnksa_918342001@naka.org> <1dmtwx7.vv6lio128jjduN@cordelia-121.cableol.net> <7a6gi3$8t8$1@zingo.tninet.se> <1dn84nk.a64e11cikwb1N@medusa.cwi.nl> <1dn843w.6r80331fwn59aN@cordelia-92.cableol.net> <1dn8ofh.1hgylbz9xaf9cN@[149.225.0.181]> <slrn7cipjg.3vs6p87.tksweden@face32.sto.telia.se> <barmar-1702990828540001@barmar.ne.mediaone.net> <NOSPAM-1802990237150001@1dyn91.utr.casema.net> <1dnf8w1.16l7een14shoziN@pec-1-170.tnt1.s2.uunet.de> <1dnfxx6.1v639em17e52gdN@cordelia-127.cableol.net> <1dng4sv.1r8d4rl10rwl2iN@pec-0-101.tnt1.s2.uunet.de> <7anhid$4ge$1@zingo.tninet.se> <1dnlar8.18brezvw7jzy8N@pec-0-186.tnt1.s2.uunet.de> <7b9tt3$690$1@zingo.tninet.se> <1dnxyli.1677yxnjbxxogN@pec-0-189.tnt1.s2.uunet.de> <48db80f9dbVincent.Lefevre@pm-vlefevre.ens-lyon.fr> <1dnyk9y.17mv2ok1qk39toN@pec-1-225.tnt1.s2.uunet.de> <48dbb4ac8bVincent.Lefevre@pm-vlefevre.ens-lyon.fr> <1do16nn.15rrdrjuxmmvyN@medusa.cwi.nl> <8D82D48DYazorman@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
X-Deja-AN: 452203128
Content-Transfer-Encoding: 8bit
Mail-Copies-To: never
Content-Type: text/plain; charset=ISO-8859-1
Organization: none
Mime-Version: 1.0
User-Agent: MacSOUP/2.4
Newsgroups: news.software.readers