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.
őúéáűíóü
". This is what I get with the raw filter: "?úéá?íóü". The output is a PDF file, I don't know how to check the HTML output before it get's converted to PDF. – zsss Oct 19 '21 at 10:49őúéáűíóü
' %} {{ html|raw }}` it's working again. – zsss Oct 19 '21 at 11:01