I write a script:
$ff = '«'; echo $ff.'<br>'; echo json_encode(array('data'=>$ff)); //Вывод: //« //{"data":"\u00ab"} I am writing the second:
$ff = html_entity_decode('«'); echo $ff.'<br>'; echo json_encode(array('data'=>$ff)); //Вывод: //« //{"data":null} Instead of html_entity_decode('«') you can write chr(171) . The result is the same, wtf? How to explain?
PS System in utf-8