Article View: news.software.readers
Article #240827Re: Message encodings
From: Whiskers
Date: Sat, 15 May 2010 15:54
Date: Sat, 15 May 2010 15:54
31 lines
2661 bytes
2661 bytes
On 2010-05-15, David Given <dg@cowlark.com> wrote: > 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? I think UTF-8 would be a better default. > (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?) I don't know about news-servers, but it's certainly true that some people are still using client software that isn't 'eight-bit clean'. As well as the RFCs <http://www.faqs.org/rfcs/np.html#USENET> I think the GNKSA <http://www.xs4all.nl/~js/gnksa/> offers useful guidance for the design of usenet clients. -- -- ^^^^^^^^^^ -- Whiskers -- ~~~~~~~~~~
Technical Details
Message-ID:
<slrnhutgu0.ct8.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.ams3.giganews.com!border1.nntp.ams2.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<69i2c7-7o4.ln1@gate.cowlark.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnhutgu0.ct8.catwheezel@ID-107770.user.individual.net> Subject: Re: Message encodings Date: Sat, 15 May 2010 16:54:40 +0100 From: Whiskers <catwheezel@operamail.com> References: <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!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Organization: is an alien concept Lines: 31 Reply-To: Whiskers <catwheezel@gmx.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: individual.net E+y025+OdKtWXQG9atTDsgw0lhHOcIKKaM0efn2uf1C+bfE2Lw X-Orig-Path: ID107770.user.individual.net!not-for-mail Cancel-Lock: sha1:iQzmMxdk0s0aFXyiJDS396pFEck= X-Face: (8UIp\C%, 7b>N'Aa}l7v*-4z\fb2ab=[r*LKrwTU]>W\E]YS3Cb3mZo1Ty.t2%6_KsTV_ "Pmt)1xC~QW%bU/xrlDuux"; aJOH0|Ka^MEDf"9Ck?FcYcR)aI~e[\"NW,mpyK}Q6dU[\BmvwRD00 xYer]; 5mR_!\-haGb/=!*bDWCm0~!G7ewqq7*|#g2#uEBhnKk60qLJ":i_#zfZ'cH`2a^!q_lzxh@ p& g^8<z5>HA User-Agent: slrn/pre0.9.9-94 (Linux) X-Original-Bytes: 2436