Re: Firefox sets wrong encoding to directory listings?

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

 



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

-- 
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-devel-list

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux