summaryrefslogtreecommitdiffstats
path: root/src/UtfString.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/UtfString.php')
-rw-r--r--src/UtfString.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/UtfString.php b/src/UtfString.php
index 1e863a4..cac93ab 100644
--- a/src/UtfString.php
+++ b/src/UtfString.php
@@ -81,7 +81,7 @@ class UtfString implements \ArrayAccess
// overloading is enabled.
// https://php.net/manual/ro/mbstring.overload.php
$this->byteLen = strlen($str);
- $this->charLen = mb_strlen($str);
+ $this->charLen = mb_strlen($str, 'UTF-8');
}
/**