[Linux-programlama] Re: PHP dosya upload ederken türkçe karakter sorunu

---------

[Linux-programlama] Re: PHP dosya upload ederken türkçe karakter sorunu

From: Yuce Tekol <yucetekol_at_gmail.com>
Date: Fri, 15 Aug 2008 15:58:23 +0300
Message-ID: <a0db246a0808150558n12370bfx56651fbe5969d27c@mail.gmail.com>

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 ("&#304;", "\u0130", "\xDD", "İ" ), "I",
> $text );
> $text = str_replace ( array ("&#305;", "\u0131", "\xFD", "ı" ), "i",
> $text );
> $text = str_replace ( array ("&#286;", "\u011e", "\xD0", "Ğ" ), "G",
> $text );
> $text = str_replace ( array ("&#287;", "\u011f", "\xF0", "ğ" ), "g",
> $text );
> $text = str_replace ( array ("&Uuml;", "\u00dc", "\xDC", "Ü" ), "U",
> $text );
> $text = str_replace ( array ("&uuml;", "\u00fc", "\xFC", "ü" ), "u",
> $text );
> $text = str_replace ( array ("&#350;", "\u015e", "\xDE", "Ş" ), "S",
> $text );
> $text = str_replace ( array ("&#351;", "\u015f", "\xFE", "ş" ), "s",
> $text );
> $text = str_replace ( array ("&Ouml;", "\u00d6", "\xD6", "Ö" ), "O",
> $text );
> $text = str_replace ( array ("&ouml;", "\u00f6", "\xF6", "ö" ), "o",
> $text );
> $text = str_replace ( array ("&Ccedil;", "\u00c7", "\xC7", "Ç" ),
> "C", $text );
> $text = str_replace ( array ("&ccedil;", "\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

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.