mysqli_query("SET NAMES UTF8");
$sql = "SELECT * FROM yazi";
$result = mysqli_query($mysql, $sql);
$json_array = array();
while($row = mysqli_fetch_assoc($result))
{
$json_array[] = $row;
}
echo json_encode($json_array, JSON_UNESCAPED_UNICODE);