In database, I have set a column in utf8_general_ci and use to put some chinese words. And I can see the words in this way "香港", but when I select the data by php and echo the words they become this "\u9999\u6e2f". So how can I get a real chinese words like "香港".
<?php
include 'dbconfig.php'; //search queue by uid, display json
$link = mysql_connect($host, $uname, $pass) or
die("Database connection failed!");
mysql_select_db($database, $link) or
die("Database could not be selected!");
$keyword = $_POST['keyword'];
$query = "SELECT qid, qname, description FROM queuing WHERE setUpUid = '".$keyword."' AND isValid = true";
$result = mysql_query($query) or die("Fail");;
$cart = array();
while($array = mysql_fetch_array($result)){
$cart[] = array(
"qid" => $array['qid'],
"qname" => $array['qname'],
"description" => $array['description']
);
}
echo json_encode(array("response"=>$cart));
mysql_close($link);
?>
ouput: {"response":[{"qid":"6","qname":"\u9999\u6e2f","description":"\u9999\u6e2f"}]}