Support the ongoing development of Laravel.io →
posted 10 years ago
Configuration
Last updated 2 years ago.
0

They are converted characters. There shouldn't be a problem if you decode it or use it in javascript.

Last updated 2 years ago.
0

gcreator, for a more complete comprehension what's going on

  1. open http://www.php.net/manual/en/json.constants.php
  2. take a look at 'JSON_UNESCAPED_UNICODE'
    then follow the chain
    3.1 http://laravel.com/api/source-class-Illuminate.Support.Facades.Response.html#_json
    3.2 http://laravel.com/api/source-class-Illuminate.Http.JsonResponse.html#JsonResponse
  3. ...
  4. profit?
Last updated 2 years ago.

ebedy liked this reply

1

brilliant answers!! Thank you all!!!

I have just changed a little bit the Response::json like:

Response::json($data,200,$headers,JSON_UNESCAPED_UNICODE);

and works like a charm!!!!!!

Thank you!!!!

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

gcreator gcreator Joined 9 May 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.