mardi 25 août 2015

Laravel UTF-8 Problems

When ill try to return some Objects from my Database with special Chars, like "ä", "ö" or something like that, ill found out that my values not being correct returned by laravel.

The database is mysql, and i using here in database.php:

        'charset'   => 'utf8',
        'collation' => 'utf8_unicode_ci',

When ill return some values, ill use:

    return response()->json($response, 200, [], JSON_UNESCAPED_UNICODE);

But i am always getting encoding problems, like "Begründung:"

In my database all values are correct saved with that special chars, so it should be a ORM problem?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Juqtch
via IFTTT

Aucun commentaire:

Enregistrer un commentaire