1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-01 18:47:20 +01:00

fix posting of ı and İ, possibly a bit more xD

This commit is contained in:
czaks 2014-04-18 14:38:05 +02:00
parent 7a35cbd519
commit f12940ca73

View File

@ -1273,7 +1273,9 @@ function make_comment_hex($str) {
if (function_exists('iconv')) { if (function_exists('iconv')) {
// remove diacritics and other noise // remove diacritics and other noise
// FIXME: this removes cyrillic entirely // 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); $str = strtolower($str);