Re: Gamin website



On 23/03/06 16:52, Daniel Veillard wrote:

>On Thu, Mar 23, 2006 at 04:03:23PM +0000, James Henstridge wrote:
>  
>
>>There is no web browser bugs involved here (other than internet explorer
>>not supporting application/xhtml+xml).
>>
>>Your pages had the text/html mime type before.  The "AddDefaultCharset"
>>header is in use on www.gnome.org to set the default encoding to UTF-8. 
>>This meant that your pages were being served with the
>>"text/html;charset=utf-8" media type.
>>
>>When the encoding is specified in the headers, it overrides the encoding
>>set inside the document (the same goes for text/xml).
>>
>>If you set "AddDefaultCharset ISO-8859-1" in your .htaccess file then
>>the files would be served as "text/html;charset=ISO-8859-1", which would
>>solve the encoding problem.
>>    
>>
>
>  Why on earth do you try to override the charset of the pages blindly,
>especially since this take predecedence over the charset indicated in the
>pages !
>  
>
I didn't configure the Gnome web servers, but most distros include the
AddDefaultCharset directive in their default apache config files.

The documentation on the apache site seems to indicate that it was
designed to address some cross site scripting vulnerabilities related to
charset guessing:
    http://httpd.apache.org/docs/2.0/mod/core.html#adddefaultcharset

James.



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