diff --git a/src/Util/StringUtility.php b/src/Util/StringUtility.php index 72dce3d..a949769 100644 --- a/src/Util/StringUtility.php +++ b/src/Util/StringUtility.php @@ -34,7 +34,7 @@ public static function toLowerCase($string) } public static function trimString($message) { - return strlen($message) > self::REMARK_LIMIT ? substr($message,0,self::REMARK_LIMIT)."..." : $message; + return mb_strlen($message) > self::REMARK_LIMIT ? mb_substr($message, 0, self::REMARK_LIMIT) . "..." : $message; } public static function removeSpecialCharacters($string) {