Thread View: news.software.readers
4 messages
4 total messages
Started by Will Parsons
Fri, 14 Jul 2017 22:55
[slrn] Odd conversion problem
Author: Will Parsons
Date: Fri, 14 Jul 2017 22:55
Date: Fri, 14 Jul 2017 22:55
18 lines
1332 bytes
1332 bytes
On occasion I have noticed getting a message reading certain posts in slrn: Can't convert utf8 -> UTF-8 This makes a certain amount of sense since the headers of the problematic posts contain: Content-Type: text/plain; charset=utf8; format=flowed and I have LANG=en_US.UTF-8 in my environment. Naïvely, I would expect a utf8 -> UTF-8 conversion here to be a no-op, so what's wrong, and is there anything I can do to fix it? (It's really only an annoyance, though, not a serious problem.) -- Will
Re: [slrn] Odd conversion problem
Author: Michael Bäuerle
Date: Sat, 15 Jul 2017 09:44
Date: Sat, 15 Jul 2017 09:44
39 lines
2389 bytes
2389 bytes
Will Parsons wrote:
>
> On occasion I have noticed getting a message reading certain posts in
> slrn:
>
> Can't convert utf8 -> UTF-8
>
> This makes a certain amount of sense since the headers of the
> problematic posts contain:
>
> Content-Type: text/plain; charset=utf8; format=flowed
^^^^
This is not a valid MIME name for UTF-8.
slrn tells you that "utf8" is an unknown character set.
> and I have LANG=en_US.UTF-8 in my environment.
>
> Naïvely, I would expect a utf8 -> UTF-8 conversion here to be a no-op,
> so what's wrong,
As noted above, the MIME Content-Type declaration was wrong. RFC 2046
specify that the value of the charset parameter is case-insensitive [1].
But the hyphen must be present according to the list of IANA registered
charsets [2] (106 in the MIBenum column).
Examples for valid declaration: utf-8, UTF-8, Utf-8, uTf-8
> and is there anything I can do to fix it? (It's
> really only an annoyance, though, not a serious problem.)
To really fix it, you have to tell the creator of the article to
correctly configure the newsreader.
Maybe slrn allows a workaround (default charset or alias mapping).
______________
[1] <https://tools.ietf.org/html/rfc2046#section-4.1.2>
[2] <http://www.iana.org/assignments/character-sets/character-sets.xhtml>
Re: [slrn] Odd conversion problem
Author: Will Parsons
Date: Sun, 16 Jul 2017 01:50
Date: Sun, 16 Jul 2017 01:50
42 lines
2445 bytes
2445 bytes
On Saturday, 15 Jul 2017 5:44 AM -0400, Michael Bäuerle wrote: > Will Parsons wrote: >> >> On occasion I have noticed getting a message reading certain posts in >> slrn: >> >> Can't convert utf8 -> UTF-8 >> >> This makes a certain amount of sense since the headers of the >> problematic posts contain: >> >> Content-Type: text/plain; charset=utf8; format=flowed > ^^^^ > This is not a valid MIME name for UTF-8. > slrn tells you that "utf8" is an unknown character set. > >> and I have LANG=en_US.UTF-8 in my environment. >> >> Naïvely, I would expect a utf8 -> UTF-8 conversion here to be a no-op, >> so what's wrong, > > As noted above, the MIME Content-Type declaration was wrong. RFC 2046 > specify that the value of the charset parameter is case-insensitive [1]. > But the hyphen must be present according to the list of IANA registered > charsets [2] (106 in the MIBenum column). > > Examples for valid declaration: utf-8, UTF-8, Utf-8, uTf-8 > >> and is there anything I can do to fix it? (It's >> really only an annoyance, though, not a serious problem.) > > To really fix it, you have to tell the creator of the article to > correctly configure the newsreader. > > Maybe slrn allows a workaround (default charset or alias mapping). Thank you. I'm happy enough knowing it's neither my, nor slrn's, fault. (I may or may not be bother to complain to the original poster, but now I know I *can* legitimately do that.) -- Will
Re: [slrn] Odd conversion problem
Author: Michael Bäuerle
Date: Sun, 16 Jul 2017 08:14
Date: Sun, 16 Jul 2017 08:14
20 lines
1961 bytes
1961 bytes
Will Parsons wrote: > On Saturday, 15 Jul 2017 5:44 AM -0400, Michael Bäuerle wrote: > > > > [...] > > To really fix it, you have to tell the creator of the article to > > correctly configure the newsreader. > > > > Maybe slrn allows a workaround (default charset or alias mapping). > > Thank you. I'm happy enough knowing it's neither my, nor slrn's, > fault. (I may or may not be bother to complain to the original > poster, but now I know I *can* legitimately do that.) IMHO you should complain (with friendly words e.g. via E-Mail). A heterogeneous network like USENET really needs standard compliant articles. MIME was standardized in 1996 (RFC 2045 ff.) and is mandatory for News since 2009 (RFC 5536). It is very sad that, after more than two decades, many implementations and configurations are still broken.
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