๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
4 messages
4 total messages Started by Anton Shepelev Sun, 26 Jun 2016 11:35
Content-Type: charset
#260305
Author: Anton Shepelev
Date: Sun, 26 Jun 2016 11:35
11 lines
1374 bytes
Hello, all

I  couldn't find the specification for the 'charset'
parameter in the 'Content-Type:' header.  My partic-
ular  question is whether it can be specified in up-
per case, e.g. 'US-ASCII', or must always be in low-
er case, e.g. 'us-ascii'.

-- 
()  ascii ribbon campaign - against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]
Re: Content-Type: charset
#260306
Author: Michael Bรคuerle
Date: Sun, 26 Jun 2016 12:42
29 lines
1888 bytes
Anton Shepelev wrote:
> 
> Hello, all
> 
> I  couldn't find the specification for the 'charset'
> parameter in the 'Content-Type:' header.

This is a MIME header field defined in RFC2045:
<https://tools.ietf.org/html/rfc2045#section-5>

In chapter 2 there is the definition:
| 
| [...] All media type values, subtype values, and
| parameter names as defined are case-insensitive.  However, parameter
| values are case-sensitive unless otherwise specified for the specific
| parameter.

> My partic-
> ular  question is whether it can be specified in up-
> per case, e.g. 'US-ASCII', or must always be in low-
> er case, e.g. 'us-ascii'.

This is one of the cases cited above, where "unless otherwise specified"
comes into play. The parameter value for "charset" is defined in RFC2046
as case-insensitive:
<https://tools.ietf.org/html/rfc2046#section-4.1.2>
| 
| Unlike some other parameter values, the values of the charset
| parameter are NOT case sensitive. [...]
Re: Content-Type: charset
#260307
Author: Anton Shepelev
Date: Sun, 26 Jun 2016 18:10
39 lines
2502 bytes
Michael Bauerle:
> Anton Shepelev:
>
> > I   couldn't  find  the  specification  for  the
> > 'charset' parameter in the 'Content-Type:' head-
> > er.
>
> This is a MIME header field defined in RFC2045:
> <https://tools.ietf.org/html/rfc2045#section-5>
>
> In chapter 2 there is the definition:
>
>   All  media  type  values,  subtype  values,  and
>   parameter names as defined are case-insensitive.
>   However,  parameter  values  are  case-sensitive
>   unless  otherwise  specified  for  the  specific
>   parameter.
>
> > My  particular  question  is  whether  it can be
> > specified in upper  case,  e.g.  'US-ASCII',  or
> > must always be in lower case, e.g. 'us-ascii'.
>
> This  is  one of the cases cited above, where "un-
> less otherwise specified" comes into play. The pa-
> rameter  value for "charset" is defined in RFC2046
> as case-insensitive:
>
> ,----[ <https://tools.ietf.org/html/rfc2046#section-4.1.2> ]
> | Unlike some other parameter values,  the  values
> | of the charset parameter are NOT case sensitive.
> `-------------------------------------------------

Thank you very much, Mechael, for the references and
the answer.  I think you just helped to remove a bug
an NNTP-to-Fido gateway.

-- 
()  ascii ribbon campaign - against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]
Re: Content-Type: charset
#260308
Author: Anton Shepelev
Date: Sun, 26 Jun 2016 18:46
9 lines
1367 bytes
I wrote to Michael Bauerle:

> Thank you very much, Mechael[...]

* Michael.

-- 
()  ascii ribbon campaign - against html e-mail
/\  http://preview.tinyurl.com/qcy6mjc [archived]
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