Any way to return PHP json_encode
with encode UTF-8 and not Unicode?
$arr=array('a'=>'á');
echo json_encode($arr);
mb_internal_encoding('UTF-8');
and $arr=array_map('utf8_encode',$arr);
does not fix it.
Result: {"a":"\u00e1"}
Expected result: {"a":"á"}