Commit cde71f43 by Alexander Makarov

Added encoding to StringHelper::byteSubst() fallback

parent 08c1b8aa
...@@ -40,7 +40,7 @@ class BaseStringHelper ...@@ -40,7 +40,7 @@ class BaseStringHelper
*/ */
public static function byteSubstr($string, $start, $length) public static function byteSubstr($string, $start, $length)
{ {
return mb_substr($string, $start, $length ?: mb_strlen($string), '8bit'); return mb_substr($string, $start, $length ?: mb_strlen($string, '8bit'), '8bit');
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment