Twig UTF8 Character Encoding - Symfony2

后端 未结 4 1269
青春惊慌失措
青春惊慌失措 2021-01-02 01:27

I am developing a news system for a french association\'s website with Symfony2. I\'m having troubles when it comes to displaying the accents and also HTML.

In the t

4条回答
  •  失恋的感觉
    2021-01-02 02:02

    Try to convert the twig files and controllers into UTF-8! The similar problem was here (when passing variables from the controller to twig), and this solved the problem.

提交回复
热议问题