🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #260306

Re: Content-Type: charset

#260306
From: 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. [...]
Technical Details
Message-ID: <AABXb83ME5wAAAoj.A1.flnews@WStation6.micha.freeshell.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
References: <20160626143558.7f1e16c070585e199900ab68@gmail.com>

Show Full Headers
Complete Article Headers
Message-ID: <AABXb83ME5wAAAoj.A1.flnews@WStation6.micha.freeshell.org>
Subject: Re: Content-Type: charset
Date: Sun, 26 Jun 2016 12:42:52 -0000
From: Michael Bäuerle <michael.baeuerle@gmx.net>
References: <20160626143558.7f1e16c070585e199900ab68@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.(126883).mbox.7z!not-for-mail
Newsgroups: news.software.readers
Lines: 29
Mime-Version: 1.0
X-Trace: individual.net miUBT8GyCiCHcjBNsIwHeQITzjSTM1cjtNBNnfkRwZCeeh5BNX
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:fsKc5NfkMPT7BD6t7zq4kPjwlf8=
Injection-Date: Sun, 26 Jun 2016 12:42:52 -0000
User-Agent: flnews/0.14pre38 (for SunOS)
X-Received-Bytes: 1789
X-Received-Body-CRC: 2331871107