Problema resolvido
$result = $mysql->query($sql);
while($row = mysql_fetch_assoc($result)) {
$r[] = array_map('utf8_encode', $row);
}
echo json_encode($r);
obrigada
$result = $mysql->query($sql);
while($row = mysql_fetch_assoc($result)) {
$r[] = array_map('utf8_encode', $row);
}
echo json_encode($r);