From d753d0476053fc7859e60fe97670a4299dd8fa32 Mon Sep 17 00:00:00 2001 From: Git'Fellow <12234510+solracsf@users.noreply.github.com> Date: Sat, 17 Feb 2024 21:37:34 +0100 Subject: [PATCH] Move away from deprecated utf_encode() on PHP 8.2+ Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> --- lib/private/Log/LogDetails.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/Log/LogDetails.php b/lib/private/Log/LogDetails.php index ec88aa767fb..f8b43881f66 100644 --- a/lib/private/Log/LogDetails.php +++ b/lib/private/Log/LogDetails.php @@ -106,7 +106,7 @@ abstract class LogDetails { if (is_string($value)) { $testEncode = json_encode($value, JSON_UNESCAPED_SLASHES); if ($testEncode === false) { - $entry[$key] = utf8_encode($value); + $entry[$key] = mb_convert_encoding($value, 'UTF-8', mb_detect_encoding($value)); } } } -- 2.39.5