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
First you need setting the charset in your HTML code
Second "convert_encoding()" is a twig function which convert variable to other encoding.
{{ article.body | convert_encoding('UTF-8', 'ISO-8859-1') }}
But maybe, you need to use raw before convert your variable
{{ article.body | raw | convert_encoding('UTF-8', 'ISO-8859-1') }}
http://twig.sensiolabs.org/doc/filters/convert_encoding.html