From 2d342746720df7031128571ae8328a15513b26d7 Mon Sep 17 00:00:00 2001 From: czaks Date: Fri, 18 Apr 2014 14:38:05 +0200 Subject: [PATCH] =?UTF-8?q?fix=20posting=20of=20=C4=B1=20and=20=C4=B0,=20p?= =?UTF-8?q?ossibly=20a=20bit=20more=20xD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);