#21640 [Bgs]: phpinfo() should contain character encoding to be valid html
| From: | hanno at gmx dot de | Date: | Wed, 15 Jan 2003 09:43:01 +0000 |
| Subject: | #21640 [Bgs]: phpinfo() should contain character encoding to be valid html | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-30082@lists.php.net to get a copy of this message | ||
ID: 21640
User updated by: hanno@gmx.de
Reported By: hanno@gmx.de
Status: Bogus
Bug Type: PHP options/info functions
Operating System: Linux
PHP Version: 4.3.0
New Comment:
Well, it seems that this is already implenented, only commented out.
After looking at
/php-4.3.0/ext/standard/info.c
I found these lines:
/*
php_printf("<meta http-equiv=\"Content-Type\" content=\"text/html;
charset=%s\" />\n", charset);
*/
So you just have to uncomment it and it'll work.
Previous Comments:
------------------------------------------------------------------------
[2003-01-14 19:21:59] sniper@php.net
It's a debug tool. There's absolutely NO reason for it being 100% valid
as long as it can be READ.
------------------------------------------------------------------------
[2003-01-14 16:56:41] hanno@gmx.de
Well, iso-8859-1 was only an example-tag.
It is really simple to implement, so why not making it valid.
------------------------------------------------------------------------
[2003-01-14 12:15:53] derick@php.net
Why care for a debug tool? It's not that phpinfo() is supposed to be
used everywhere. Also iso-8859-1 might not be always correct.
------------------------------------------------------------------------
[2003-01-14 12:14:14] hanno@gmx.de
The phpinfo()-function should contain a character encoding meta-tag.
This would make it valid html with the w3c-validator at
http://validator.w3.org.
The meta-tag would be like:
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21640&edit=1