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

Popular posts from this blog

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

iOS: Performance of reloading UIImage(name:...) -