30/09/2018, 19:28 
               
            Hỏi JSON_ENCODE
Em chào anh chị ak
Em đang lỗi font chữ tiếng việt chỗ JSON_ENCODE
if (mysqli_num_rows($result) > 0) {
$response["city"] = array();
while ($row = mysqli_fetch_array($result)) {
    // temp user array
    $citys = array();
    $citys["id"] = $row["id"];
    $citys["city"] = $row["city"];		
	array_push($response["city"], $citys);
	
}
$response["success"] = 1;
**
echo json_encode($response);-> không hiện tiếng việ
t**
} else {
$response["success"] = 0;
$response["message"] = "No products found";
echo json_encode($response);
}
Anh chị giúp em với ạ
            Bài liên quan
         
                
            




Sau khi đọc Json kết quả không ra tiếng việt luôn hay sao? Bạn đã đọc thử nó chưa hay chỉ xem output?
Bạn coi lại chỗ cấu hình
mysqli_connection. Lỗi tiếng Việt này chả liên quan gì tớijson_encodecả. Đại loại là thế này.mysql_*vớimysqli_*cũng tương tự nhau, tùy vào phiên bản của PHP.