Laravel 5 charset not working correctly on the views. But it working well when I dump it from controller

后端 未结 4 1520
囚心锁ツ
囚心锁ツ 2020-12-11 04:18

I\'m facing a charset problem here. I\'m developing an app that uses a sql server database. The database was not created for this app, it exists before it and works very wel

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-11 04:42

    I solved this issue using this aswer. I've just went in my AppServiceProvider and put into boot method:

    Blade::setEchoFormat('e(utf8_encode(%s))');
    

    I don't know if this is the correct way to do it, but it works for me.

提交回复
热议问题