Firefox sets wrong encoding to directory listings?

nodata lsof at nodata.co.uk
Sun Nov 25 17:56:01 UTC 2007


Am Sonntag, den 25.11.2007, 11:12 +0100 schrieb Martin Sourada:
> 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
> -- 
> fedora-devel-list mailing list
> fedora-devel-list at redhat.com
> https://www.redhat.com/mailman/listinfo/fedora-devel-list

What character set does your filesystem use?

What does Apache display if you create a file with a Japanese filename?
Copy and paste from yahoo.jp to test.




More information about the fedora-devel-list mailing list