Re: [users@httpd] AddDefaultCharset and Multiple Encodings

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

 



From: "Skating Jim" <skatingjim@xxxxxxxxx>

> I agree with your distinction between what Apache does
> and how the browser responds to it.  Sorry for the
> inaccuracy on my part.
>
> The basis for my comment is that the Apache
> documentation for AddDefaultCharset says:
>
> "This should override any charset specified in the
> body of the response via a META  element, though the
> exact behavior is often dependent on the user's client
> configuration."
>
> Mozilla 1.7.12 and Opera 8.51 give priority to the
> HTTP charset encoding and therefore comply with the
> "should" statement in the Apache documentation.  IE6.0
> gives priority to the Content-Type meta element in the
> HTML head instead.
>

Hmm, strange. I have seen that if I use the charset ISO-8859-2 in a meta tag
in an xhtml file, IE 6 uses the ISO-8859-1 charset specified in the HTTP
headers even though I don't want this.

> Unfortunately, taking the advice of the Apache
> documentation prevents the more compliant browsers
> from correctly rendering the content from a given
> server using the AddDefaultCharset directive unless
> that same charset encoding is used across the entire
> site.  Although Apache is not responsible for this,
> compliance with the "should" statement in its
> documentation is.
>
> I think the Apache documentation should not recommend
> overriding the meta element, because what's in the
> meta element is most likely to be correct.  Does this
> make sense or am I still off target?
>

Yes I also think that the prefered charset should be the one specified in
the meta tag, especially in xhtml files, because they are a kind of XML
files and I know that the XML files should be able to have the charset
specified inside.

Teddy


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux