Answer the question
In order to leave comments, you need to log in
Why does Laravel 5.2 output hieroglyphs instead of Russian text?
Hello.
Such a problem - when submitting the registration form on the site in laravel , it substitutes characters instead of Cyrillic.
In app.php there is "ru" Russian around \u041a\u0430\u043a\u0430\u043a\u0435
How to fix this?
Thanks
Answer the question
In order to leave comments, you need to log in
If this is contained in the json response, the JSON_UNESCAPED_UNICODE flag must be added.
The database must be in utf8
in config/database.php add
'charset' => 'utf8',
'collation' => 'utf8_unicode_ci',
no.
It was just necessary to write in the model
protected $fillable = [
'fname', 'name', 'email', 'password',
];
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question