Im having a MySQL db with some tables, all encoded in utf8_general_ci. I'm requesting with mysqli and returns an array.
If i do print_r($my_db_answer);
i get åäö working like
Array
(
[hi] => hej
[hello] => hallå
)
if i do echo json_encode($my_db_answer);
i get all the strings not containing åäö correct and null on the strings containing these values, like this:
{"hi":"hej","hello":"hall\u00e5"}
Regarding to php manual json_encode only works with utf8, so what's the problem here?
Never mind...
(I was cheking the json in the client before i decoded the json)