commit | b312d2f18e24ad980e647884e1bae6c26ceb82d8 | [log] [tgz] |
---|---|---|
author | Mohammad Javad Naderi <mjnaderi@gmail.com> | Thu Aug 22 13:23:15 2013 +0430 |
committer | Mohammad Javad Naderi <mjnaderi@gmail.com> | Thu Aug 22 13:23:15 2013 +0430 |
tree | 70e649ea3708ac306afcd94283494e90be0de198 | |
parent | a1553a9a49b8d355de7892204759651aa3532dad [diff] |
character_limiter now works correct for UTF-8 strings strlen() doesn't return the actual length for unicode strings. For example strlen('سلام') returns 8, but length of سلام is 4. strlen(utf8_decode('سلام')) returns correct value 4. Reference: http://www.php.net/manual/de/function.strlen.php#45407