From c329e7a2da8668b35145010de63233997b646616 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Thu, 26 Jun 2025 11:39:38 +0900 Subject: [PATCH] Add JSON_UNESCAPED_UNICODE as default flag for json convert to array calls --- www/lib/CoreLibs/Convert/Json.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/lib/CoreLibs/Convert/Json.php b/www/lib/CoreLibs/Convert/Json.php index 356e5db3..91626a18 100644 --- a/www/lib/CoreLibs/Convert/Json.php +++ b/www/lib/CoreLibs/Convert/Json.php @@ -55,10 +55,10 @@ class Json * Deos not throw errors * * @param array $data - * @param int $flags json_encode flags as is + * @param int $flags [JSON_UNESCAPED_UNICODE] json_encode flags as is * @return string JSON string or '{}' if false */ - public static function jsonConvertArrayTo(array $data, int $flags = 0): string + public static function jsonConvertArrayTo(array $data, int $flags = JSON_UNESCAPED_UNICODE): string { $json_string = json_encode($data, $flags) ?: '{}'; self::$json_last_error = json_last_error();