I globally agree with you but why one would want to break a working environment ? We don't have necessary the time to adapt all web site on the planet to the new implementations.
I don't say that this implementation is not good, that's probably the best way to manage new contents as utf8 is speading : * but the best is the good's evil * !!!!! I just wanted that this behaviour be an option for the administrator to choose, and not a default of debian. Debian, which is, indeed, imho, the best solution for long-term operating support, has to be clear with its logic. Best regards, Michel Le vendredi 10 novembre 2006 à 17:24 +0100, Steinar H. Gunderson a écrit : > On Fri, Nov 10, 2006 at 10:36:10AM +0100, Michel Briand wrote: > > mozilla selects utf8 if apache told him that its the default - even if the > > page designer used the content="text/html; charset=ISO-8859-15" in headers > > Well. > > AddDefaultCharset simply sets the default character set when the page does > not specify one; that is, Apache by default sends something like > > Content-type: text/html; charset=utf-8 > > instead of > > Content-type: text/html > > Of course, any page is free to send a different content type, in which case > the default won't matter (Apache never sends it). For instance, in Perl: > > print $cgi->header(-type=>'text/html; charset=iso-8859-15'); > > or in PHP: > > header('Content-type: text/html; charset=iso-8859-15'); > > There are also ways of setting this explicitly for static pages (via > .htaccess and/or .meta files); see the Apache documentation for more > details. > > Now, what you are probably thinking of is the following abomination: > > <head> > <meta http-equiv="Content-type" content="text/html; charset=iso-8859-15"> > </head> > > It is true that a Content-type: header with a character set will override > this. However, using http-equiv is strongly discouraged in general, and has > been so for years -- after all, what character set would the browser assume > for the <meta> tag? (And if you were serving non-HTML content, like plain > text, how would you specify the character set information if not in the HTTP > headers?) I have nothing to do with Apache maintenance, but you should at > least be aware that if this is indeed what you're doing, you shouldn't be > surprised when it breaks... > > /* Steinar */ This e-mail is intended only for the above addressee. It may contain privileged information. If you are not the addressee you must not copy, distribute, disclose or use any of the information in it. If you have received it in error please delete it and immediately notify the sender. Security Notice: all e-mail, sent to or from this address, may be accessed by someone other than the recipient, for system management and security reasons. This access is controlled under Regulation of Investigatory Powers Act 2000, Lawful Business Practises.