Php ile türkçe karakter sorunu alıyorsan kullanılacak komut
$utf8donustur = iconv('UTF-8', 'ISO-8859-9', $deger);