Article View: news.software.readers
Article #251818Re: We need an a RFC that says: The entire header is UTF-8.
From: Russ Allbery
Date: Sat, 03 Nov 2012 22:15
Date: Sat, 03 Nov 2012 22:15
58 lines
4549 bytes
4549 bytes
Ivan Shmakov <oneingray@gmail.com> writes:
> Indeed, we already have such an RFC for e-mail:
> 6532 Internationalized Email Headers. A. Yang, S. Steele, N. Freed.
> February 2012. (Format: TXT=22725 bytes) (Obsoletes RFC5335) (Updates
> RFC2045) (Status: PROPOSED STANDARD)
> Of course, this RFC does not only contain such a statement, but
> also addresses compatibility and interoperability issues.
We tried to pave the way for permitting exactly this change in the NNTP
standard by requiring that implementations that comply with RFC 3977 be
able to handle UTF-8. However, there's a hole in the "type system" for
netnews articles here (section 3.6):
The content of a header SHOULD be in UTF-8. However, if an
implementation receives an article from elsewhere that uses octets in
the range 128 to 255 in some other manner, it MAY pass it to a client
or server without modification. Therefore, implementations MUST be
prepared to receive such headers, and data derived from them (e.g.,
in the responses from the OVER command, Section 8.3), and MUST NOT
assume that they are always UTF-8. Any external processing of those
headers, including identifying the encoding used, is outside the
scope of this document.
We pretty much had to say that, since we know of existing use of 8-bit
characters that are *not* UTF-8 in headers in some Usenet hierarchies
(generally ISO 8859-1 or 8859-15, but there are a few other character sets
in use as well).
As a result, any implementation has the problem that, when seeing an
article that contains untagged non-ASCII characters in the header, there
is no firm way of knowing what character set that header is in. SMTP
addressed this through the SMTPUTF8 extension where, at the SMTP layer,
two implementations can signal to each other that they're speaking the
version of the standard that assumes all non-ASCII characters are UTF-8.
This doesn't completely resolve the problem (you still have the problem of
correctly interpreting random mail messages sitting around on disk), but
mail has also historically been much more adverse to random non-ASCII
characters in headers than netnews has and therefore doesn't have quite
the same legacy problem that we do.
It's not at all clear to me that there's enough active engagement on the
software development side to both specify and actually deploy some
equivalent to SMTPUTF8 that would allow explicit tagging. My guess is
that, given the number of agents that are combination netnews and email
agents, we will, over time, see an increasing amount of unencoded UTF-8 in
netnews headers and people will apply unsatisfactory and conflict-prone
guessing algorithms to try to determine the character set. Which isn't a
very satisfying or comfortable outcome, but I'm not sure that we have the
practical resources to do better.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87pq3u9vua.fsf@windlord.stanford.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!.POSTED!not-for-mailReferences:
<Jeff-Relf.Me@Oct.29{10.38.PM.Seattle.2012}> <Jeff-Relf.Me@Oct.30{10.50.PM.Seattle.2012}> <86ehkftblk.fsf_-_@gray.siamics.net> <Jeff-Relf.Me@Oct.30{11.41.PM.Seattle.2012}> <eli$1211021409@qz.little-neck.ny.us> <86vcdmkbk6.fsf@gray.siamics.net>Show Full Headers
Complete Article Headers
Message-ID: <87pq3u9vua.fsf@windlord.stanford.edu>
Subject: Re: We need an a RFC that says: The entire header is UTF-8.
Date: Sat, 03 Nov 2012 15:15:41 -0700
From: Russ Allbery <rra@stanford.edu>
References: <Jeff-Relf.Me@Oct.29{10.38.PM.Seattle.2012}> <Jeff-Relf.Me@Oct.30{10.50.PM.Seattle.2012}> <86ehkftblk.fsf_-_@gray.siamics.net> <Jeff-Relf.Me@Oct.30{11.41.PM.Seattle.2012}> <eli$1211021409@qz.little-neck.ny.us> <86vcdmkbk6.fsf@gray.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.nntp.20141118.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!usenet.stanford.edu!usenet-its.stanford.edu!.POSTED!not-for-mail
Newsgroups: news.software.nntp,news.software.readers
Organization: The Eyrie
Lines: 58
NNTP-Posting-Host: windlord.stanford.edu
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: usenet-its.stanford.edu 1351980942 16554 171.67.225.134 (3 Nov 2012
X-Complaints-To: news@usenet-its.stanford.edu
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)
Cancel-Lock: sha1:oEqz1Dhxe1tisDTgQP6QK064c9M=
X-Received-Bytes: 4210