The following is my php script:
<?php
$con = $con = mysql_connect("localhost","root","");
mysql_set_charset('utf8',$con);
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("ninelifes", $con);
$result = mysql_query("SELECT * FROM quotes ORDER BY quotations DESC LIMIT 21,1");
while($row = mysql_fetch_assoc($result))
{
$output[]= $row;
}
print json_encode($output);
mysql_close($con);
?>
This is the print:
The "\u00e4" is a "ä". Well, the question is how can is solve the utf8 decoding for my json print?