strlen()doesn't handle multibyte characters correctly, since it assumes 1 char is 1 byte, which is just not valid for unicode. This behavior is described here: http://php.net/strlen
strlen () returns the number of bytes , not the number of characters in a string.
The solution is to use the function mb_strlen()( mbmeans multi byte) ( see mb_strlen () docs ).
EDIT
- /, , . PHP .
, php.ini, , mb_string , . .