diff --git a/application/Espo/Repositories/ArrayValue.php b/application/Espo/Repositories/ArrayValue.php index 26d3c356e3..0e54a7e4a5 100644 --- a/application/Espo/Repositories/ArrayValue.php +++ b/application/Espo/Repositories/ArrayValue.php @@ -121,8 +121,8 @@ class ArrayValue extends Database continue; } - if (strlen($value) > $itemMaxLength) { - $value = substr($value, 0, $itemMaxLength); + if (mb_strlen($value) > $itemMaxLength) { + $value = mb_substr($value, 0, $itemMaxLength); } $arrayValue = $this->getNew();