mirror of
https://github.com/php/php-src.git
synced 2025-08-18 15:08:55 +02:00
- Use utf-8 instead of utf8 as encoding to fix phpinfo()
This commit is contained in:
parent
00f925015e
commit
4fd315e46b
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ static int php_info_print_html_esc(const char *str, int len)
|
||||||
char *new_str;
|
char *new_str;
|
||||||
TSRMLS_FETCH();
|
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);
|
written = php_output_write_utf8(new_str, new_len TSRMLS_CC);
|
||||||
efree(new_str);
|
efree(new_str);
|
||||||
return written;
|
return written;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue