dimanche 14 juillet 2019

Laravel5.8 accented characters issue

I use Laravel 5.8 and jenssegers to connect to a mongodb db. The DB is encoded in utf-8, the page has the meta charset set to utf-8, but when I get the result of a query I can't see the proper word ( abilit\u00e0 instead of abilità)

I tried to change the database/config of the laravel app with no luck

the query inside the controller

$i5 = Ambito_tre::where('etichetta', 'like', '5%')->get();

and that's the result. the result of the query

as you can see the à shows correctly if type in the blade view. In the db, I use monngoDB compass, the letter is correctly saved, also if I dump the collection. I have no idea how ti fix this. thanks



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire