Hi im usssing ajax to get array of data of the bd:
$.post
(
"lib/php/load_food.php",
{f:Base64.encode("primeros")},
function(data)
{
firsts = data;
},
"json"
);
But in the array firsts, the strings who have a character with acent appear that “null”.
I was looking for info or help but dont find any clue of what to do.
Thanks
Try using PHP rawurlencode(), to encode your data on the PHP file, and the use unescape() and JQUERY .text() to decode and present it normally:
Simple example:
PHP FILE:
JQUERY:
RESULT:
thís ís grêãt!