ID: 21640 User updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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