diff --git a/inc/functions.php b/inc/functions.php index c1607193..b6927b4a 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -1273,7 +1273,9 @@ function make_comment_hex($str) { if (function_exists('iconv')) { // remove diacritics and other noise // FIXME: this removes cyrillic entirely - $str = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str); + $oldstr = $str; + $str = @iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $str); + if (!$str) $str = $oldstr; } $str = strtolower($str);