note 51374 deleted from language.basic-syntax by peehaa

From: Date: Mon, 08 Jul 2013 20:33:39 +0000
Subject: note 51374 deleted from language.basic-syntax by peehaa
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-195523@lists.php.net to get a copy of this message
Note Submitter: Lachlan Hunt ---- The person that suggested the use of this meta element above is wrong: <meta http-equiv="Content-Type" content="application/xml+xhtml; charset=UTF-8" /> That meta element and the XML declaration serve completely different purposes, and that meta element should not be used. Such information should be set using the HTTP Content-Type header (see the header() function). Any XHTML page that just uses that meta element without proper HTTP Content-Type header, will be processed as text/html by browsers regardless, and when the HTTP headers do serve as application/xhtml+xml (or other XML MIME type), that charset parameter in the meta element will be ignored.

« previous php.notes (#195523) next »