The spec is a bit fuzzy when it comes to HTTP-EQUIV. While it does say:

The META element may be used to specify the default information for a document

and

The following example specifies the character encoding for a document as being ISO-8859-5

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-5">

It also says:

http-equiv = name CI

This attribute may be used in place of the name attribute. HTTP servers use this attribute to gather information for HTTP response message headers.

Although the only server I'm aware of which actually does this is Russian Apache (you have to have a way of specifing http headers for all media types, so why bother having an HTML specific one?).

I can't find anywhere in the spec that says that user agents that are not servers should pay any attention to HTTP-EQIV whatsoever.

There is also the issue that it is rather difficult to read a document if the character encoding is unknown. If the only way to find out the character encoding is to read the document, then you have a problem.

Real HTTP headers are the way to go, and I'm not aware of any user agent that has a problem with them.


In reply to Re^2: Header, start_html and encodings by dorward
in thread Header, start_html and encodings by Nik

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.