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

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -