Firefox sets wrong encoding to directory listings?
Martin Sourada
martin.sourada at seznam.cz
Sun Nov 25 10:12:58 UTC 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20071125/f466fcbc/attachment.sig>
More information about the fedora-devel-list
mailing list