Friends, I have a problem, the string that has an accent can not get it using JSON:
$imagens = array();
$sql = mysql_query("SELECT * FROM texto_index");
while ($row = mysql_fetch_row($sql)){
$imagens[] = $row;
}
echo json_encode($imagens);
For example: comes as null
the array:
Array ( [0] => Array ( [0] => 5 [1] => RECEITUÁRIOS [2] => MASCULINOS [3] => 1 [4] => #ffffff [5] => 56 [6] => 28 [7] => Direita [8] => cache/1404135032s-receituario-feminino-eco2.jpg ) [1] => Array ( [0] => 6 [1] => ÓCULOS [2] => MASCULINOS [3] => 1 [4] => #ffffff [5] => 52 [6] => 20 [7] => esquerda [8] => cache/1404225957262.jpg ) )