diff options
author | Dan Ungureanu <udan1107@gmail.com> | 2015-07-28 15:27:26 +0300 |
---|---|---|
committer | Dan Ungureanu <udan1107@gmail.com> | 2015-07-28 15:27:26 +0300 |
commit | 0a34899914d044fe1ed9e70fb137165c880775f5 (patch) | |
tree | 025f5c9077cf10ab184e753f1d2e22a220f69594 /src/UtfString.php | |
parent | 25df44927bac8c0ae7ca5d0261799652fe73c46d (diff) | |
download | sql-parser-0a34899914d044fe1ed9e70fb137165c880775f5.zip sql-parser-0a34899914d044fe1ed9e70fb137165c880775f5.tar.gz sql-parser-0a34899914d044fe1ed9e70fb137165c880775f5.tar.bz2 |
Avoid altering the internal encoding.
Diffstat (limited to 'src/UtfString.php')
-rw-r--r-- | src/UtfString.php | 2 |
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'); } /** |