Laravel 5: I have problem with unicode. if I do
return Response::json(['data' => 'Что то']);
Receive {data: \о\б\ь\я}
I want set parameter JSON_UNESCAPED_UNICODE to Response::json()
The following does not work:
Response::json(['data' => 'Что то'], JSON_UNESCAPED_UNICODE)
将JSON_UNESCAPED_UNICODE
设置为第四个参数:
return Response::json(['data' => 'Что то'], 200, [], JSON_UNESCAPED_UNICODE);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.