[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: Altan Tanrıverdi <altant_at_gmail.com>
Date: Fri, 15 Aug 2008 14:03:32 +0300
Message-ID: <9827740f0808150403l4077b88bvc396543bafab3364@mail.gmail.com>

İyide :) Tümay beyin verdiği fonksiyon gayet iyi bir fonksiyondu ve sizin
yaptığınız işlemi gerçekleştiriyor. Sanırım referanstan dolayı
çalıştıramadınız veya okumadınız.

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
Received on Fri 15 Aug 2008 - 13:29:10 EEST

---------

Bu arsiv hypermail 2.2.0 tarafindan uretilmistir.