picayunish wrote:
> Toby A Inkster wrote:
>
>> For this page the only time you mention the charset is as a <meta/>
>> element. It is not in the HTTP header. In XHTML, you should specify the
>> charset in the XML prolog -- not by a meta tag.
>
> You mean like as a php function:
> <?php echo '<?xml version="1.0" encoding="iso-8859-1"?>' ."\n"; ?>
That's the one. In general, for XML, XHTML and HTML, the charset should be
specified in the HTTP header. For XHTML and XML, it should also be
specified with a prolog as per your example:
<?xml version="1.0" encoding="iso-8859-1"?>
And for HTML it should be specified in a <meta> tag. (You can also use a
<meta/> tag in XHTML, although this is entirely unneeded)
--
Toby A Inkster BSc (Hons) ARCS | private.php?do=newpm&u= | pgp:0x6A2A7D39
aim:inka80 | icq:6622880 | yahoo:tobyink | jabber:
http://www.goddamn.co.uk/tobyink/ | "You've got spam!"
playing://(nothing)