I pass the POST data with ajax and save it in an array ($ arr):
user_id_from => 42 user_id_to => 43 date_time => 2012-08-19 23:58:51 subject => Почему? message => так.. obj_identifier => o19
then I call the json_encode ($ arr) method; Here is what he brings to me as a result when receiving a response in a client script:
... "\u041f\u043e\u0447\u0435\u043c\u0443?","\u0442\u0430\u043a.." ...
If I use Latin instead of Cyrillic, everything is OK. Page encoding is UTF-8 without BOM. If you decode this line and, for example, display it on the page where the ajax request is sent:
var_dump("<h1>json:</h1><pre>",json_decode($arr),"</pre>");
then it shows everything is fine. However, I cannot decode it where I get the answer, because in the client script it is retrieved as request.responseText :
var jData = JSON.parse(req.responseText);
Probably, there is a solution, but it is unknown to me: (I would be very grateful for the help!