Merhaba,
Ben mi yanlis goruyorum yoksa asagidaki fonksiyon tek bir string
degeri degistirmek icin str_replace fonksiyonunu 12 kere cagiriyor?
Ayhan Yigid Beyin onerdigi fonksiyonu denediniz mi? Ben de Turkce
karakterlerin cogu yanlis gorunuyor, bu iki cozum birlestirilebilir.
>
> function cleanTr($text){
> $text = str_replace ( array ("İ", "\u0130", "\xDD", "İ" ), "I",
> $text );
> $text = str_replace ( array ("ı", "\u0131", "\xFD", "ı" ), "i",
> $text );
> $text = str_replace ( array ("Ğ", "\u011e", "\xD0", "Ğ" ), "G",
> $text );
> $text = str_replace ( array ("ğ", "\u011f", "\xF0", "ğ" ), "g",
> $text );
> $text = str_replace ( array ("Ü", "\u00dc", "\xDC", "Ü" ), "U",
> $text );
> $text = str_replace ( array ("ü", "\u00fc", "\xFC", "ü" ), "u",
> $text );
> $text = str_replace ( array ("Ş", "\u015e", "\xDE", "Ş" ), "S",
> $text );
> $text = str_replace ( array ("ş", "\u015f", "\xFE", "ş" ), "s",
> $text );
> $text = str_replace ( array ("Ö", "\u00d6", "\xD6", "Ö" ), "O",
> $text );
> $text = str_replace ( array ("ö", "\u00f6", "\xF6", "ö" ), "o",
> $text );
> $text = str_replace ( array ("Ç", "\u00c7", "\xC7", "Ç" ),
> "C", $text );
> $text = str_replace ( array ("ç", "\u00e7", "\xE7", "ç" ),
> "c", $text );
> return $text;
> }
>
>
> --
> İyi çalışmalar...
>
> =======================================
> Altan Tanrıverdi
> Çağ Grup Bilgi İşlem Müdürü
>
> www.cagajans.com www.turkiyevitrin.com
> Becerikli Sok. No: 19/ 8-9 06660 Kızılay/ANKARA
> T/F: 0312 434 29 34
> =======================================
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama_at_liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>
_______________________________________________
Linux-programlama mailing list
Linux-programlama_at_liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama
Received on Fri 15 Aug 2008 - 15:23:38 EEST