Article View: news.software.nntp
Article #74533Re: Encoding of the description file of newsgroups
From: Russ Allbery
Date: Wed, 29 Nov 2006 22:55
Date: Wed, 29 Nov 2006 22:55
43 lines
2830 bytes
2830 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> I currently have my « newsgroups » file encoded in utf-8.
> (the problem remains the same for latin1)
> Everything is fine when new descriptions are written only with
> ASCII characters. However, if there is a « é » (French), « í »
> (Spanish) or a sinogram for instance, my encoding is broken.
> Thus, I wonder what is the best encoding...
> Or should the news servers be updated regarding that?
The newsgroups file really should be encoded in UTF-8. There's no way in
the NNTP protocol to tag it with a particular encoding or to deal with
mixed encodings, so we have to use a universal character set to get
consistent results. Unfortunately, UTF-8 is about the *least* common
character set in use right now, so neither clients nor control messages
currently do something useful in this area.
The new NNTP standard does require UTF-8 (following the general trend of
all IETF standards towards using UTF-8 for any data where explicit charset
tagging isn't easily available).
> Regarding the hierarchies which send control articles, I think that
> there are two kinds:
> -- cn.bbs.* in gb2312 ;
> -- all the others in latin1.
> Please correct me if I am wrong.
> How could that fact be managed?
> Specifying the encoding of each hierarchy in « control.ctl »? (or
> whatever file for news servers other than INN)
Probably. :/ And then converting incoming descriptions to UTF-8 with
iconv or the like, as you mention.
--
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:
<873b81g8xj.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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mailReferences:
<ekl2nq$611$1@guepard.ecp.fr>Show Full Headers
Complete Article Headers
Message-ID: <873b81g8xj.fsf@windlord.stanford.edu> Subject: Re: Encoding of the description file of newsgroups Date: Wed, 29 Nov 2006 14:55:04 -0800 From: Russ Allbery <rra@stanford.edu> References: <ekl2nq$611$1@guepard.ecp.fr> 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!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!headwall.stanford.edu!newsfeed.stanford.edu!shelby.stanford.edu!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 43 NNTP-Posting-Host: windlord.stanford.edu Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: news.Stanford.EDU 1164840904 1725 171.64.19.147 (29 Nov 2006 22:55:04 GMT) X-Complaints-To: news@news.stanford.edu User-Agent: Gnus/5.110006 (No Gnus v0.6) XEmacs/21.4.19 (linux) Cancel-Lock: sha1:YdbvRqTFUL0vvK/y/7uWFd8mhfY=