From 135da689eacb7c6f5c608ff5dd89eeeceb0bd13e Mon Sep 17 00:00:00 2001 From: Christopher Date: Mon, 9 Jan 2023 10:42:59 +0100 Subject: [PATCH] Update ChromePhp.php utf8_encode() is deprecated in PHP 8.2 --- ChromePhp.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChromePhp.php b/ChromePhp.php index 577b1ce..1f94984 100755 --- a/ChromePhp.php +++ b/ChromePhp.php @@ -402,7 +402,7 @@ protected function _writeHeader($data) */ protected function _encode($data) { - return base64_encode(utf8_encode(json_encode($data))); + return base64_encode(mb_convert_encoding(json_encode($data), "UTF-8")); } /**