From: Johannes Schlüter Date: Tue, 23 Jan 2007 15:47:28 +0000 (+0000) Subject: - Use utf-8 instead of utf8 as encoding to fix phpinfo() X-Git-Tag: RELEASE_1_0_0RC1~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fd315e46b9a03ef60bd21a784b8732b21027e5c;p=php - Use utf-8 instead of utf8 as encoding to fix phpinfo() --- diff --git a/ext/standard/info.c b/ext/standard/info.c index 902fabea1c..bbf9bbb57f 100644 --- a/ext/standard/info.c +++ b/ext/standard/info.c @@ -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;