Revision: 1884
Updated Code
at February 8, 2007 02:04 by prf_q
Updated Code
<? // FUNCTION by.AHMET ALP BALKAN (prf_Q) // www.ahmetalpbalkan.com 18.11.2006 // This function converts characters of Turkish alphabet into English(Latin). You can use it for AJAX too. function turkishreplace($sData){ $newphrase=$sData; $newphrase = str_replace("Ãœ","U",$newphrase); $newphrase = str_replace("Ş","S",$newphrase); $newphrase = str_replace("Ğ","G",$newphrase); $newphrase = str_replace("Ç","C",$newphrase); $newphrase = str_replace("Ä°","I",$newphrase); $newphrase = str_replace("Ö","O",$newphrase); $newphrase = str_replace("ü","u",$newphrase); $newphrase = str_replace("ÅŸ","s",$newphrase); $newphrase = str_replace("ç","c",$newphrase); $newphrase = str_replace("ı","i",$newphrase); $newphrase = str_replace("ö","o",$newphrase); $newphrase = str_replace("ÄŸ","g",$newphrase); $newphrase = str_replace("Ü","U;",$newphrase); $newphrase = str_replace("Ş","S",$newphrase); $newphrase = str_replace("Ğ","G",$newphrase); $newphrase = str_replace("Ç","C",$newphrase); $newphrase = str_replace("İ","I",$newphrase); $newphrase = str_replace("Ö","O",$newphrase); $newphrase = str_replace("ü","u",$newphrase); $newphrase = str_replace("ş","s",$newphrase); $newphrase = str_replace("ç","c",$newphrase); $newphrase = str_replace("ı","i",$newphrase); $newphrase = str_replace("ö","o",$newphrase); $newphrase = str_replace("ğ","g",$newphrase); $newphrase = str_replace("%u015F","s",$newphrase); $newphrase = str_replace("%E7","c",$newphrase); $newphrase = str_replace("%FC","u",$newphrase); $newphrase = str_replace("%u0131","i",$newphrase); $newphrase = str_replace("%F6","o",$newphrase); $newphrase = str_replace("%u015E","S",$newphrase); $newphrase = str_replace("%C7","C",$newphrase); $newphrase = str_replace("%DC","U",$newphrase); $newphrase = str_replace("%D6","O",$newphrase); $newphrase = str_replace("%u0130","I",$newphrase); $newphrase = str_replace("%u011F","g",$newphrase); $newphrase = str_replace("%u011E","G",$newphrase); return $newphrase; } ?>
Revision: 1883
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at November 18, 2006 08:00 by prf_q
Initial Code
<? // FUNCTION by.AHMET ALP BALKAN (prf_Q) // www.ahmetalpbalkan.net 18.11.2006 // This function converts characters of Turkish alphabet into English(Latin). You can use it for AJAX too. function turkishreplace($sData){ $newphrase=$sData; $newphrase = str_replace("Ãœ","U",$newphrase); $newphrase = str_replace("Ş","S",$newphrase); $newphrase = str_replace("Ğ","G",$newphrase); $newphrase = str_replace("Ç","C",$newphrase); $newphrase = str_replace("Ä°","I",$newphrase); $newphrase = str_replace("Ö","O",$newphrase); $newphrase = str_replace("ü","u",$newphrase); $newphrase = str_replace("ÅŸ","s",$newphrase); $newphrase = str_replace("ç","c",$newphrase); $newphrase = str_replace("ı","i",$newphrase); $newphrase = str_replace("ö","o",$newphrase); $newphrase = str_replace("ÄŸ","g",$newphrase); $newphrase = str_replace("Ü","U;",$newphrase); $newphrase = str_replace("Ş","S",$newphrase); $newphrase = str_replace("Ğ","G",$newphrase); $newphrase = str_replace("Ç","C",$newphrase); $newphrase = str_replace("İ","I",$newphrase); $newphrase = str_replace("Ö","O",$newphrase); $newphrase = str_replace("ü","u",$newphrase); $newphrase = str_replace("ş","s",$newphrase); $newphrase = str_replace("ç","c",$newphrase); $newphrase = str_replace("ı","i",$newphrase); $newphrase = str_replace("ö","o",$newphrase); $newphrase = str_replace("ğ","g",$newphrase); $newphrase = str_replace("%u015F","s",$newphrase); $newphrase = str_replace("%E7","c",$newphrase); $newphrase = str_replace("%FC","u",$newphrase); $newphrase = str_replace("%u0131","i",$newphrase); $newphrase = str_replace("%F6","o",$newphrase); $newphrase = str_replace("%u015E","S",$newphrase); $newphrase = str_replace("%C7","C",$newphrase); $newphrase = str_replace("%DC","U",$newphrase); $newphrase = str_replace("%D6","O",$newphrase); $newphrase = str_replace("%u0130","I",$newphrase); $newphrase = str_replace("%u011F","g",$newphrase); $newphrase = str_replace("%u011E","G",$newphrase); return $newphrase; } ?>
Initial URL
Initial Description
This script converts characters of Turkish alphabet into English(Latin). You can use it for AJAX too.
Initial Title
Turkish Characters To English Alphabet Function
Initial Tags
Initial Language
PHP