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

Re: Firefox sets wrong encoding to directory listings?



On Sun, 2007-11-25 at 00:02 +0100, Christopher Aillon wrote:
> The server supplied headers will always win.  My guess is that Apache is 
I have specifically set in /etc/httpd/conf/httpd.conf this directive

AddDefaultCharset UTF-8

> sending Content-Type: text/html.  Which means your meta tags (why are 
> you sending two of them!?!) will have no effect.  And since the document 
The first one is for xml, the second one is for text/html and the last
one is for application/xhtml+xml

> is text/html and being processed as such, your <?xml?> declaration also 
> has no effect.
> 

So, as far as I understand, Apache should be sending it with UTF-8
encoding as .html file (as opposed to e.g. index.xhtml, but I
tried .html as well) and Firefox should either detect the character
settings correctly or use the setting in metatags.

Here are the differences between various files which I discovered via
Page Info in Firefox:

File             Type                    Encoding
----------------------------------------------------
index.xhtml      application/xhtml+xml   UTF-8
index.html       text/html               UTF-8
dir. listing     text/html               ISO-8859-1

So, once again the basic question. Where is the problem? Do I need to
add some additional directive to Apache configuration to force it to use
UTF-8 encoding for directory listings or is it Firefox or Apache bug?

Thanks,
Martin

Attachment: signature.asc
Description: This is a digitally signed message part


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