From cf6ea68a7b2a2a1dda43bf4891190e9a972cdc7f Mon Sep 17 00:00:00 2001 From: Jan Fejtek Date: Thu, 19 Oct 2023 22:25:28 +0200 Subject: [PATCH] Replace deprecated utf8_encode --- src/Models/Concerns/HasAttributes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Models/Concerns/HasAttributes.php b/src/Models/Concerns/HasAttributes.php index 011ea471..6eb536b0 100644 --- a/src/Models/Concerns/HasAttributes.php +++ b/src/Models/Concerns/HasAttributes.php @@ -212,7 +212,7 @@ protected function encodeValue(string $value): string return $value; } - return utf8_encode($value); + return mb_convert_encoding($value, 'UTF-8', 'ISO-8859-1'); } /**