- Use utf-8 instead of utf8 as encoding to fix phpinfo()

This commit is contained in:
Johannes Schlüter 2007-01-23 15:47:28 +00:00
parent 00f925015e
commit 4fd315e46b

View 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;