Article View: news.software.nntp
Article #71866Re: Why encode headers?
From: Jim Heckman
Date: Tue, 14 Jun 2005 23:34
Date: Tue, 14 Jun 2005 23:34
24 lines
2027 bytes
2027 bytes
On 14-Jun-2005, hlwu <hlwu@ms37.hinet.net> wrote in message <1118786744.79935bd303ea845370fdf274025b6f39@teranews>: > Unlike mail, usenet news articles are transmitted through 8-bit > channels. What is the reason to MIME-encode headers then? > > I have read articles posted by none-NNTP-compliance softwares > which do not encode headers. Headers such as From, Subject, > Organization, etc, though contain 8-bit characters, appear just > fine. The 8th bit is not stripped and headers readable. > > It seems to me that technically there is no reason to encode > headers or am I missing something? One reason is that the Content-Type header technically only applies to the body of an article, not to its headers. So in theory there's no way to know whether 8-bit characters in headers are iso-8859-1, utf-8 or some other encoding (in your case for example probably big5). Of course in practice it's usually safe to assume the headers use the same encoding as the body. -- Jim Heckman
Technical Details
Message-ID:
<11auqbkdl23spd2@corp.supernews.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!tethys.csu.net!nntp.csufresno.edu!sn-xit-03!sn-xit-12!sn-xit-08!sn-post-01!supernews.com!corp.supernews.com!not-for-mailReferences:
<1118786744.79935bd303ea845370fdf274025b6f39@teranews>Show Full Headers
Complete Article Headers
Message-ID: <11auqbkdl23spd2@corp.supernews.com> Subject: Re: Why encode headers? Date: Tue, 14 Jun 2005 23:34:26 GMT From: "Jim Heckman" <wnzrfeurpxzna@lnubb.pbz.invalid> References: <1118786744.79935bd303ea845370fdf274025b6f39@teranews> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20140818.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!tethys.csu.net!nntp.csufresno.edu!sn-xit-03!sn-xit-12!sn-xit-08!sn-post-01!supernews.com!corp.supernews.com!not-for-mail Newsgroups: news.software.nntp Organization: Posted via Supernews, http://www.supernews.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit User-Agent: News Rover 10.2.3 (http://www.NewsRover.com) Mime-proxy/2.0.c.1 (Win32) X-Complaints-To: abuse@supernews.com Lines: 24