Change your code to:
header('Content-Type: application/json; charset=utf-8', true,200); $JSON["today"]=array(); for ($i=0; $i < count($olay_tarih); $i++) { $gelen["date"]=array(); $gelen["content"]=array(); array_push($gelen["date"], $olay_date[$i]); array_push($gelen["content"], $olay_content[$i]); array_push($JSON["today"], $gelen); } $JSON = array_map('utf8_encode', $JSON); echo json_encode($JSON);
Adding UTF-8 headers will cause the browser to recognize special characters for this parameter.
source share