W3C home > Mailing lists > Public > www-html@w3.org > January 2003

Pages won't validate as XHTML because of Char Encoding

From: Aziz Matar <matar84@comcast.net>
Date: Mon, 27 Jan 2003 20:14:48 -0500
To: www-html@w3.org
Message-id: <000801c2c66a$a6ffa500$7ee02b44@wodhvn01.mi.comcast.net>
In order to make my pages valid XHTML 1.0, I am required to specify a character encoding. However, in order to be able to easily update this encoding in the future, I do not want to use the meta tags.

Usually, this can be done server side by putting the following into the HTACCESS file:

AddType 'text/html; charset=ISO-8859-1' shtml

However, my pages are PHP, not SHTML. Therefore, when I type PHP instead of SHTML in that line, it disables my PHP pages from working :-(

Does anyone know a way to set this character encoding another way? I don't want to use meta tags, and htaccess doesn't seem to work PHP wise...
Received on Monday, 27 January 2003 20:16:06 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:02 UTC