I'm working on a project with OctoberCMS, using DynamicPDF plugin (based on DoomPdf) and can't figure out what is happening.
I'm passing variable $name to the PDF layout, were it would be rendered as {{ name|raw }}.
$name is encoded in UTF-8 in the controller and if I just use {{ name }} in the template characters are dispalyed correctly, but when I use the |raw filer "ő" and "ű" gets converted to "?".
Solutions suggesting to use convert_encoding('UTF-8', 'ISO-8859-1') doesn't work, I already tried lot's of options...
UPDATE: I think that the problem is not with the twig filter, but somewhere in DoomPDF or in Dynamic PDF plugin, because when I preview the template in HTML everything is ok, but when I do the PDF review the problem is there.