cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tobia Conforto <>
Subject Content-Type charset parameter and application/ types
Date Tue, 10 Jul 2007 15:32:40 GMT

According to tests I've done and to a piece of documentation, it would
seem that a "charset=" parameter is added to the Content-Type header
only when the mime type starts with text/.

In fact says:

	The charset parameter should not be specified explicitly;
	instead, when the top-level media type is text, a charset
	parameter should be added according to the character encoding
	actually used by the output method.

But this should also happen for application/xml, application/xhtml+xml,
and possibly other types.  RFC 3236 says:


	The charset parameter has identical semantics to the charset
	parameter of the "application/xml" media type

and RFC 3023 says:


	Although listed as an optional parameter, the use of the charset
	parameter is STRONGLY RECOMMENDED, since [whatever]

Is this the serializer's fault?
The servlet container's fault?


View raw message