[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#745605: apache2: ignores AddDefaultCharset


It seems Apache 2.4.9-2 misuses the AddDefaultCharset statement.
By default it should be Off but the current 2.4.9-2 simply overrides the value of the parameters and sets it to UTF-8.

Forcing the value to Off or to something else (i.e. ISO-8859-1 in my case) will have no impact.
The server will always set "Content-Type:	text/html; charset=UTF-8".

Here is an example of reply for one of my ISO-8859-1 (set in the html header) site when the parameter is set to Off:

X-Powered-By:	PHP/5.6.0beta4
Vary:	Accept-Encoding
Server:	Apache/2.4.9 (Debian)
Keep-Alive:	timeout=5, max=100
Date:	Mon, 16 Jun 2014 20:56:35 GMT
Content-Type:	text/html; charset=UTF-8
Content-Length:	873
Content-Encoding:	gzip

This is really annoying because browsers will prefer the server value to the value set in the HTML header HTTP-EQUIV.
So some of my sites are broken unless I rollback the apache version which is not ideal.

Best Regards,

Reply to: