|
Posted by malatestapunk on 12/07/06 06:10
You could also send an appropriate header from your script:
<?php header ("Content-Type: text/html; charset=iso-8859-1"); ?>
To be extra safe, I'd keep the META tag in the HTML too.
John Dunlop wrote:
> Michael Fesser:
>
> > [Erwin Moller:]
> >
> > ><META HTTP_EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
> >
> > That's rather useless, because the real HTTP header will override it.
>
> I wouldn't say useless, not altogether. If HTTP is not used, then
> the highest priority way of determining the Content-Type is
> unavailable, and the next highest priority way according to HTML4.01 is
> the META tag. HTTP would not be used, for example, if a document was
> saved and opened later from the filesystem.
>
> > Better configure the server to send the appropriate content type.
>
> Of course! But that doesn't stop you repeating yourself in a META
> tag.
>
> --
> Jock
Navigation:
[Reply to this message]
|