I'm trying to get cyrillic data from MySQL database using php I set utf-8
$db = mysql_select_db(DB_DATABASE) or die(mysql_error()) or die(mysql_error());
mysql_query("SET character_set_client = utf8");
mysql_query("SET character_set_connection = utf8");
mysql_query("SET character_set_results = utf8");
And when i set cyrillic data in db it works properly, but when I'm trying to get it:
$product["id"] = $row["id"];
$product["first_name"] = $row["first_name"];
$product["last_name"] = $row["last_name"];
$product["vk_id"] = $row["vk_id"];
$product["points"] = $row["points"];
// push single product into final response array
array_push($response["users"], $product);
echo json_encode($response);
And it gives me \u0416\u0430\u043c\u0431\u044b\u043b
and when I change json_encode($response);
to json_encode($response, JSON_UNESCAPED_UNICODE);
it gives me :ЖамбыР
How can I get readable cyrillic data?