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 -

Laravel mail error `Swift_TransportException in StreamBuffer.php line 269: Connection could not be established with host smtp.gmail.com [ #0]` -

c# SetCompatibleTextRenderingDefault must be called before the first -