You are here: Re: Php, ISO-8859-1 « PHP Programming Language « IT news, forums, messages
Re: Php, ISO-8859-1

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация