Article View: news.software.readers
Article #240823Message encodings
From: David Given
Date: Sat, 15 May 2010 12:56
Date: Sat, 15 May 2010 12:56
22 lines
2291 bytes
2291 bytes
Usenet messages are, AIUI, supposed be either (a) valid MIME messages with a content-type, charset and transfer-encoding; or (b) non-MIME messages in 7-bit ASCII. However, in practice there are lots of messages floating around that violate these rules, usually by using high-bit bytes where they're not supposed to (either in headers, where they're supposed to use MIME encoded-words instead, or in a message body in a non-MIME message). What's the best thing to do when decoding these? Do I just treat them as ISO-8859-1 and hope for the best, or are there better heuristics I should use? (Incidentally, is it the case these days that all NNTP servers are 8-bit clean? If not, does anyone know of a free news server that will correctly reencode messages in 7-bit that I can use for testing?) -- ┌─── dg@cowlark.com ───── http://www.cowlark.com ───── │ │ "There is no Fermi Paradox. Any time space faring aliens make it to │ Earth, the cows get them." --- Sam Starfall
Technical Details
Message-ID:
<69i2c7-7o4.ln1@gate.cowlark.com>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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <69i2c7-7o4.ln1@gate.cowlark.com> Subject: Message encodings Date: Sat, 15 May 2010 13:56:38 +0100 From: David Given <dg@cowlark.com> 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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Cowlark Technologies Lines: 22 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 15 May 2010 13:08:03 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="Bln4lvsxm3O6cyccKODn8w"; logging-data="12694"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX197ZFcU14rSa50+yywx6q1sDtCsdtFqqI4=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; Cancel-Lock: sha1:fwn5xIqKfTsmpChbeliLkFYIxdc= X-Original-Bytes: 2075