]> granicus.if.org Git - php/commitdiff
- Use utf-8 instead of utf8 as encoding to fix phpinfo()
authorJohannes Schlüter <johannes@php.net>
Tue, 23 Jan 2007 15:47:28 +0000 (15:47 +0000)
committerJohannes Schlüter <johannes@php.net>
Tue, 23 Jan 2007 15:47:28 +0000 (15:47 +0000)
ext/standard/info.c

index 902fabea1c69867b2c5096a1503b93b5eeaf4179..bbf9bbb57f2c4385edcd8d502f1550066f7208ae 100644 (file)
@@ -67,7 +67,7 @@ static int php_info_print_html_esc(const char *str, int len)
        char *new_str;
        TSRMLS_FETCH();
        
-       new_str = php_escape_html_entities((char *) str, len, &new_len, 0, ENT_QUOTES, "utf8" TSRMLS_CC);
+       new_str = php_escape_html_entities((char *) str, len, &new_len, 0, ENT_QUOTES, "utf-8" TSRMLS_CC);
        written = php_output_write_utf8(new_str, new_len TSRMLS_CC);
        efree(new_str);
        return written;