<?php$data = [ 'item' => 'Значение', ];var_dump(json_encode($data));var_dump(json_encode($data, JSON_UNESCAPED_UNICODE));
Standard input is empty
string(59) "{"item":"\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435"}" string(27) "{"item":"Значение"}"
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!