Türkçe Latin5 Karakterleri UTF8 formatına Çeviren Fonksiyon
Oct 28,2008 00:00 by canawar

<?php

//Arkadaşlar bunda da açıklama yersiz, bu koda bakan bunu anlayacaktır tahminimce :)

function convert_utf8($str)
{
$str = str_replace("ı","ı", $str);
$str = str_replace("İ","İ", $str);
$str = str_replace("ş","ÅŸ", $str);
$str = str_replace("Ş","ÅŸ", $str);
$str = str_replace("Ğ","ÄŸ", $str);
$str = str_replace("ğ","ÄŸ", $str);
$str = str_replace("Ü","Ü", $str);
$str = str_replace("Ç","Ç", $str);
$str = str_replace("Ö","Ö", $str);
$str = str_replace("ü","ü", $str);
$str = str_replace("ç","ç", $str);
$str = str_replace("ö","ö", $str);
return $str;
}

echo convert_utf8("Siyyah.Com iyi ve mutlu günler diler...");

?>