summaryrefslogtreecommitdiffstats
path: root/src/UtfString.php
diff options
context:
space:
mode:
authorDan Ungureanu <udan1107@gmail.com>2015-07-28 15:27:26 +0300
committerDan Ungureanu <udan1107@gmail.com>2015-07-28 15:27:26 +0300
commit0a34899914d044fe1ed9e70fb137165c880775f5 (patch)
tree025f5c9077cf10ab184e753f1d2e22a220f69594 /src/UtfString.php
parent25df44927bac8c0ae7ca5d0261799652fe73c46d (diff)
downloadsql-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.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');
}
/**