I\'m developing a dependent select script using jQuery, PHP and JSON as the response.
Everything goes well except for using special characters like French ones (é ,
If I write them like (é) and don't pre-encode them the full value in this array entry is not shown.
What should I do here?
In JSON you do not HTML-encode values. You send them literally (é) and set set Content-Type correctly:
header('Content-Type: application/json; Charset=UTF-8');
Declare the encoding your data is in, of course.