0

Turkish character problem. I'm using PHP 5.4 version. Php page

<?php

mysql_connect("127.0.0.1","android_project","mypassword");

mysql_select_db("android_project");
mysql_query("SET NAMES 'utf8_turkish_ci'");
$q=mysql_query("SELECT * FROM product");

while($e=mysql_fetch_assoc($q))
{

$output[]= $e;

}
header("Content-type: application/json; charset=utf8_turkish_ci");
print(json_encode($output)); 
mysql_close();

?>

Akıllı=Ak?ll? , Hafıza=Haf?za

etc.

mesutpiskin
  • 1,771
  • 2
  • 26
  • 30

1 Answers1

-1

Check if your file has been saved with utf8, then try again

Jorge
  • 333
  • 1
  • 5
  • 17