diff options
Diffstat (limited to 'it.class')
-rw-r--r-- | it.class | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -416,7 +416,7 @@ static function grep($pattern, $array, $p = array()) */ function any2utf8($value) { - return strlen($value) && strlen(htmlspecialchars($value, 0, 'utf-8')) == 0 ? utf8_encode($value) : $value; # Use side-effect of htmlspecialchars: Fails if not valid utf-8 encoding + return grapheme_strlen($value) === null ? utf8_encode($value) : $value; } /** |