apache a kodovanie

Pavel švarc stefan.samecek na volny.cz
Sobota Prosinec 7 20:09:41 CET 2002


Kocourek Lukas wrote:

>> > >No, bude lepsie to vypnut uplne. Imho chyba je aj tak v browseri,
>> > >pretoze to co je v META by malo prevladnut nad tym co je v
>> HTTP response.
>> 
>> Opravdu? Odkud mate tuhle informaci (nemyslim ze to tak u nejakych
>> browseru je, ale proc by tomu tak melo byt).
> 
> taky myslim ze to tak neni.. viz muj pokus... udelal jsem si tento php
> skripticek:
proč testovat něco co je dáno ??
http://www.w3.org/TR/html401/charset.html
<cite>
To sum up, conforming user agents must observe the following priorities when 
determining a document's character encoding (from highest priority to 
lowest):
   1. An HTTP "charset" parameter in a "Content-Type" field.
   2. A META declaration with "http-equiv" set to "Content-Type" and a value
      set for "charset".
   3. The charset attribute set on an element that designates an external 
      resource.
</cite>

Stefan


Další informace o konferenci Linux