php
$data = array('name' => $name, 'price' => $price); $data = json_encode($data); print ($data); js $ .ajax ({
type:'get', url: '/ajax/items_info.php', //dataType: 'json', cache: false, data:{'id':$item_id}, response:'text', success:function (data) { //jQuery.parseJSON(data); console.log(data); } }); All of this is on bitrix, if it matters at all) when I transmit just strings of the type $ name - Russian characters are typed. The array is u0412 \ u0435 \ u043d. Commented code does not help much, gives errors.
JSON_UNESCAPED_UNICODEinjson_encode(). - Visman