Twig UTF8 Character Encoding - Symfony2

后端 未结 4 1175
青春惊慌失措
青春惊慌失措 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:12

    Encoding problem could appear in the next places:

    1. The HTML document:

      
      
    2. The files you use (controllers and views normally).
    3. The database connection. The charset parameter must be set to 'utf8'.

提交回复
热议问题