Function converts all other characters, just 'ø' what is UTF-8 character not, all other chars, like "Ч,Č,Ć,Đ,Š,Ž,Ђ,Ж,Љ" etc. converts normally to ascii...
This is function what i use:
function toAscii($str, $replace=array(), $delimiter='-') {
if( !empty($replace) ) {
$str = str_replace((array)$replace, ' ', $str);
}
$clean = iconv('UTF-8', 'ASCII//TRANSLIT', $str);
$clean = preg_replace("/[^a-zA-Z0-9\/_|+ -]/", '', $clean);
$clean = strtolower(trim($clean, '-'));
$clean = preg_replace("/[\/()_|+ -]+/", $delimiter, $clean);
return $clean;
}
I need it to ascii for url.