String length seems to be byte length rather than character length, which makes it wrong on multi-byte characters, e.g. "(String, 6 characters ) --6⅝" That's only 4 characters, but Krumo tells me it's 6.
Instead of strlen($data), call mb_strlen($data,"UTF-8"). You need to have mbstring in your phpinfo.
Log in to post a comment.
Instead of strlen($data), call mb_strlen($data,"UTF-8").
You need to have mbstring in your phpinfo.