I have some data in the database that contains characters such as ä, å, and ö, and when I try to get the data with json, it returns null instead of the actual data.
Any idea how to fix this problem?
Here is the code I am using:
$result= mysql_query('SELECT * FROM Recipes ORDER BY `ID` DESC LIMIT 5');
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
$out[]=$row;
}
print(json_encode($out));
I tried everything I came across when googling, yet didn't solve the problem.