From d2de7173384d42057e8532cc4f9928f6f446ad93 Mon Sep 17 00:00:00 2001 From: REJack Date: Fri, 21 Jun 2024 00:34:09 +0200 Subject: [PATCH] Update StringHelper to avoid converting int's encoding to utf8 --- src/Helper/StringHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helper/StringHelper.php b/src/Helper/StringHelper.php index 16627ff..6d51b0a 100644 --- a/src/Helper/StringHelper.php +++ b/src/Helper/StringHelper.php @@ -468,7 +468,7 @@ public function isUtf8(): bool */ public function toUtf8(): static { - if (!$this->isUtf8()) { + if (!$this->isUtf8() && !$this->isInt()) { $this->string = mb_convert_encoding($this->string, 'UTF-8', mb_list_encodings()); }