Article View: news.software.readers
Article #47123Re: Non-ASCII characters
From: Erland Sommarskog
Date: Sat, 06 Mar 1999 00:00
Date: Sat, 06 Mar 1999 00:00
44 lines
3520 bytes
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.
Technical Details
Message-ID:
<8D82D48DYazorman@news.algonet.se>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.mac.comm.mbox.zip!not-for-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <8D82D48DYazorman@news.algonet.se> Subject: Re: Non-ASCII characters 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> <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> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.sys.mac.comm.mbox.zip!not-for-mail X-Deja-AN: 452034769 X-Complaints-To: abuse@algo.net X-Trace: cubacola.tninet.se 920761386 10731 195.163.78.161 (6 Mar 1999 23:03:06 GMT) Organization: BRF Beckasinen 13 User-Agent: Xnews/2.03.02 NNTP-Posting-Date: 6 Mar 1999 23:03:06 GMT Newsgroups: news.software.readers,comp.sys.mac.comm