Article View: news.software.readers
Article #253958Re: telnet(1)-ing non-Telnet servers?
From: Ivan Shmakov
Date: Thu, 04 Apr 2013 10:54
Date: Thu, 04 Apr 2013 10:54
130 lines
6377 bytes
6377 bytes
>>>>> Whiskers <catwheezel@operamail.com> writes: >>>>> On 2013-04-03, Ivan Shmakov <oneingray@gmail.com> wrote: >>>>> Barry Margolin <barmar@alum.mit.edu> writes: Ivan Shmakov >>>>> <oneingray@gmail.com> wrote: [...] >>>> Specifically, while UTF-8 doesn't seem to use \xFF, ISO-8859-1 >>>> assigns it for LATIN SMALL LETTER Y WITH DIAERESIS, windows-1251 >>>> for CYRILLIC SMALL LETTER YA, and so on. > UTF-8 supersedes the old IBM ISO and Windows encodings. However, they're still used, both in space-limited environments (such as in embedded applications; along with encodings entirely non-standard), and because of certain applications' failure to deal with UTF-8 properly. (E. g.: GNU's fmt(1), wc(1), etc.) >> Consider, e. g.: >> news:MSGID_2=3A5030=2F830.57=40fidonet_514db775@fidonet.org > That isn't a usenet article, it's a fidonet post that has been > "gatewayed" into usenet; That's a matter of point of view. For me, it was a Usenet article as soon as it has passed the gateway. > it has no headers specifying a character encoding or MIME type Yes; and this is known to break Google Groups at times. (I've informed the gatekeeper, but no action has been taken so far.) Alas, even the "native" Usenet articles may have the MIME headers missing, or the encoding screwed altogether (check, e. g., news:khr5bm$h9f$1@dont-email.me, for a recent example.) JFTR: the encoding for the messages gatewayed to the fido7.* hierarchy is set to koi8-r. > (so a normal usenet client should assume US-ASCII, which is the > default character encoding for usenet thanks to its US origins). I don't seem to recall any NUA that would assume ASCII for an article containing octets in the \200 to \377 range. Typically, an agent would assume either the encoding of the current locale, or ISO-8859-1, or will try to guess the encoding based on either the contents, or the newsgroup name, or something alike. But yes, such guesswork is /not/ what I'd normally count upon. > Viewed via news.individual.net using telnet, the Cyrillic characters > are garbled on my computer - which has no Cyrillic-only locale > settings The chances are that your system has support for both koi8-r (as used in the article above) and windows-1251 (for the one below.) Just record your nc(1) (or telnet(1)) session with script(1) (or screen(1)), and then (assuming an UTF-8 locale): $ iconv -f KOI8-R < typescript (Or -f CP1251 for the article below.) Not to mention that Web browsers and even certain newsreaders may have the transcoding routines of their own. > (as I can't read any languages that use the Cyrillic alphabet > anyway). Well, it's never too late to learn, they say. >> news:58bet9-oeb.ln1@news.russian-z1.org > That is a usenet article, and has the headers > Content-Type: text/plain; charset=windows-1251; format=flowed > Content-Transfer-Encoding: 8bit > but my computer hasn't got a "windows-1251" locale It's enough that your system (most probably) has the windows-1251 encoding support. Locale doesn't matter; just think of what difficulty would I have reading newsgroups in English, Esperanto and Russian, should I have to switch between the three respective locales! (And then, I'm somewhat interested in learning Japanese, too.) > (or anything else related to Windows for that matter!), Alas, it seems that that's the only sane (FSVO) unibyte encoding that has both the Cyrillic characters, /and/ a reasonable set of punctuation. (Although there seem to be little reason to prefer it over UTF-8 these days.) > so the Cyrillic characters are still garbled. ... Why, I've just checked, my Gnus shows the following article perfectly. (Even though I can't make a bit of sense of it.) news:A18LFSP5$forsale@bbs.cs.nthu.edu.tw (Well, except for the unencoded headers, that is.) Assuming an UTF-8 locale, I see /no/ reason for a newsreader running under GNU/Linux /not/ to transcode the articles with valid MIME headers, whatever is the encoding. > I can see them if I go to <http://al.howardknight.net/> with my web > browser set to interpret that character encoding though. FWIW, the "proper" behavior for the Web interface would be to report the encoding the contents is in via the Content-Type: HTTP header. (With the contents either sent as-is, or itself transcoded into a single encoding; preferably one based on Unicode.) I'd say that this Web interface as it's currently implemented (or set up) is itself "not MIME-compliant." > If this extract makes sense to you, then my browser has successfully > turned Windows-1251 into the UTF-8 locale on my computer, and your > system can handle UTF-8: [...] Yes. -- FSF associate member #7257 http://hfday.org/
Technical Details
Message-ID:
<87vc82woq9.fsf@violet.siamics.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mailReferences:
<slrnkl884t.2no.notbob@nbleet.hcc.net> <874nfv7dwn.fsf@violet.siamics.net> <kj1qcp$i18$1@optima5.xanadu-bbs.net> <slrnkl9pt3.2mg.catwheezel@ID-107770.user.individual.net> <8738v7zwu4.fsf_-_@violet.siamics.net> <barmar-8C5837.10162703042013@news.eternal-september.org> <87r4iry86a.fsf@violet.siamics.net> <barmar-3DB07C.12355403042013@news.eternal-september.org> <87hajny14r.fsf@violet.siamics.net> <slrnklpank.3lm.catwheezel@ID-107770.user.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <87vc82woq9.fsf@violet.siamics.net> Subject: Re: telnet(1)-ing non-Telnet servers? Date: Thu, 04 Apr 2013 10:54:06 +0000 From: Ivan Shmakov <oneingray@gmail.com> References: <slrnkl884t.2no.notbob@nbleet.hcc.net> <874nfv7dwn.fsf@violet.siamics.net> <kj1qcp$i18$1@optima5.xanadu-bbs.net> <slrnkl9pt3.2mg.catwheezel@ID-107770.user.individual.net> <8738v7zwu4.fsf_-_@violet.siamics.net> <barmar-8C5837.10162703042013@news.eternal-september.org> <87r4iry86a.fsf@violet.siamics.net> <barmar-3DB07C.12355403042013@news.eternal-september.org> <87hajny14r.fsf@violet.siamics.net> <slrnklpank.3lm.catwheezel@ID-107770.user.individual.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Aioe.org NNTP Server Lines: 130 NNTP-Posting-Host: 41vvMPMLxfEjizuK6lSUHw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:Y1ZCwGUXSf4FEGXjGfKFINFZwpY= X-Original-Bytes: 6125