🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
4 messages
4 total messages Started by Iulius Wed, 29 Nov 2006 22:48
Encoding of the description file of newsgroups
#74534
Author: Iulius
Date: Wed, 29 Nov 2006 22:48
37 lines
2214 bytes
Hi,

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?


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)
And specifying the wanted encoding for « newsgroups » in « inn.conf »?

Then, it can easily be converted by controlchan (iconv -f $source -t $destination).


Or do you have other ideas?

-- 
Iulius

« -- Quelle idée de nous atteler à des balistes ! C'est un travail de Romains ça !
   -- Justement, de quoi te plains-tu ? » (Astérix)
Re: Encoding of the description file of newsgroups
#74533
Author: Russ Allbery
Date: Wed, 29 Nov 2006 22:55
43 lines
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.
Re: Encoding of the description file of newsgroups
#74535
Author: Iulius
Date: Thu, 30 Nov 2006 10:06
36 lines
2577 bytes
La veille des Calendes de décembre, en réponse à Russ Allbery :
> 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.

All right.  Thanks.
By the way, lots of clients do not handle such descriptions (including
Thunderbird). I have tested the new slrn-UTF8 and it works well regarding
UTF-8 descriptions.


>> 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.

However, won't it disrupt the logical organization of that file?
What should be done?  A new entry like:

encoding:*:ISO-8859-1
encoding:cn.bbs.*:gb2312


And should the newsgroups file be forced to UTF-8?
Or should the newsmaster be allowed to choose?
(with another new entry « newsgroups-encoding:UTF-8 »)

-- 
Iulius

« Ambo florentes aetatibus, Arcades ambo » (Virgile, _Églogue VII_)
Re: Encoding of the description file of newsgroups
#74536
Author: Russ Allbery
Date: Thu, 30 Nov 2006 15:06
42 lines
2917 bytes
Iulius <iulius@nom-de-mon-site.com.invalid> writes:
> La veille des Calendes de décembre, en réponse à Russ Allbery :

>> 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.

> All right.  Thanks.
> By the way, lots of clients do not handle such descriptions (including
> Thunderbird). I have tested the new slrn-UTF8 and it works well regarding
> UTF-8 descriptions.

Yeah, that's what I was afraid of.

I'm not sure how much luck we're going to have getting that fixed.

> However, won't it disrupt the logical organization of that file?
> What should be done?  A new entry like:

> encoding:*:ISO-8859-1
> encoding:cn.bbs.*:gb2312

Hm.  That's not a bad idea, although there's a theoretical conflict with a
control message named "encoding."  It may be better to add a separate
configuration file that specifies newsgroup description encodings.

> And should the newsgroups file be forced to UTF-8?
> Or should the newsmaster be allowed to choose?
> (with another new entry « newsgroups-encoding:UTF-8 »)

I'd love, from a standards-conformance perspective, to force it, but given
the current sub-optimal news reader behavior, it probably has to be an
option.

-- 
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads