Hayır benim sana paste ettiğim make_text_safe fonksiyon kodlarındaki Türkçe harfler yanlış çıkmış. Çünkü PHP BBCODE Tagı içersine almıştım.
[PHP]
kodlar
[/PHP]
ama CODE tagı arasına alınca düzgün çıktı.
Eee türkçe harfler bozuk olursa, fonksiyon ne yapsın.
Düzgün olanı şu:
text = $title;
//Charachters must be in ASCII and certain ones aint allowed
$text = html_entity_decode ($text);
$text = preg_replace ("'<[\/\!]*?[^<>]*?>'si", "", $text);
$text = str_replace(" / ","-",$text);
$text = str_replace("/","-",$text);
$text = str_replace("'","-",$text);
$text = str_replace(" - ","-",$text);
$text = str_replace("_","-",$text);
$text = str_replace(" ","-",$text);
$text = str_replace( "Ç", "C", $text);
$text = str_replace( "ç", "c", $text);
$text = str_replace( "Ü", "U", $text);
$text = str_replace( "ü", "u", $text);
$text = str_replace( "İ", "I", $text);
$text = str_replace( "ı", "i", $text);
$text = str_replace( "Ş", "S", $text);
$text = str_replace( "ş", "s", $text);
$text = str_replace( "Ö", "O", $text);
$text = str_replace( "ö", "o", $text);
$text = str_replace( "Ğ", "G", $text);
$text = str_replace( "ğ", "g", $text);
$text = str_replace( "&", "ve", $text);
$text = str_replace( "%", "yuzde", $text);
$text = str_replace("?"," ",$text);
$text = str_replace( "ä", "a", $text);
$text = str_replace( "Ä", "A", $text);
$text = str_replace( "ß", "ss", $text);
$text = ereg_replace("[^A-Za-z0-9-]", "", $text);
$text = str_replace("----","-",$text);
$text = str_replace("---","-",$text);
$text = str_replace("--","-",$text);
$text = str_replace( "!", " ", $text);Bununla tekrar denermisin.