summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
Diffstat (limited to 'it.class')
-rw-r--r--it.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it.class b/it.class
index 6d516c9..b4a0d9e 100644
--- a/it.class
+++ b/it.class
@@ -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;
}
/**