Summary: | apache 2 can't handle charset settings from HTML files | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Clemens Schwaighofer <gullevek> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED INVALID | ||
Severity: | blocker | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Clemens Schwaighofer
2003-09-18 20:21:34 UTC
mea culpa this is not a bug, this is a feature. after checking with lynx I saw that apache sends this header, why? because it is set so in the conf files from apache (a "security" feature, that sucks ... like the hole apache 2 anyway ...) well, comment that line if you use plain HTML or comment that line anyway as it sucks. but if you cannot, and u use php, you have to send the content type with charset with the header(""); command so it's a matter of config file management yes it is. sadly its not good documented and turned on in default wich will give big headaches (like it did me) to most people who think upgrading is more ore less "seamless" ... In the commonapache2.conf it says: --- # # Specify a default charset for all pages sent out. This is # always a good idea and opens the door for future internationalisation # of your web site, should you ever want it. Specifying it as # a default does little harm; as the standard dictates that a page # is in iso-8859-1 (latin1) unless specified otherwise i.e. you # are merely stating the obvious. There are also some security # reasons in browsers, related to javascript and URL parsing # which encourage you to always set a default char set. # AddDefaultCharset ISO-8859-1 --- This is nonsense, as it implies that you are able to override the charset send by server with the one specified in the html document. But it is the other way around (server overrides document), so this is a really bad thing to do (TM). IMHO the ebuild should patch the commonapache2.conf to disable this by default. And setting this just because of probably buggy clients IMHO doesn't make much sense as it's merely a border case, while html files with different charsets are rather common. |