I have the following code:
$rows=array();
while($row=mysql_fetch_assoc($result))
{
echo $row["titel"];
$rows[] = array_map('utf8_encode', $row);
}
echo json_encode($rows);
Somehow the output is empty, although I take use of the "json_encode" function. The collation of my columns distinguishes between utf8_bin and utf8_general_ci. "echo $row["titel"]" outputs the title of every entry my table contains, so I guess the error has to occur in the encode.
I would appreciate every answer :)