php - Laravel 5: How to set parameters Response::json($data) as json_encode($data, JSON_UNESCAPED_UNICODE)? -
laravel 5: have problem unicode. if do
return response::json(['data' => 'Что то']);
receive {data: \u043e\u0431\u044c\u044f}
i want set parameter json_unescaped_unicode response::json()
the following not work:
response::json(['data' => 'Что то'], json_unescaped_unicode)
set json_unescaped_unicode
4th parameter:
return response::json(['data' => 'Что то'], 200, [], json_unescaped_unicode);
Comments
Post a Comment