mercredi 6 avril 2016

Saving utf-8 array in database laravel

I have problem with saving utf-8 array in database with laravel. when i save array in database it is stored like this

\u10e4\u10dd\u10dd\u10d3

when i display data it works fine, but when i run search query it displays nothing. database encoding is utf-8 with general_ci collation. i've already tried to encode data before saving in database

json_encode($data, JSON_UNESCAPED_UNICODE);

any ideas?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire