Some characters becomes ?? in pdf templates after upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • novastream
    Member
    • May 2021
    • 65

    Some characters becomes ?? in pdf templates after upgrade

    Hi,

    After upgrading to 9.0.0 (via cli) all special chars in my PDF-templates are displayed as ??.

    They are displayed correctly when editing the template.

    Some chars that are not displayed correctly:
    å ä ö á

    Any ideas whats wrong?
  • ChrisSka83
    Senior Member
    • Apr 2023
    • 211

    #2
    I noticed the same thing today, in my case it's the letter “ß”.
    But after checking, the other German characters don't work either.

    Comment

    • novastream
      Member
      • May 2021
      • 65

      #3
      Originally posted by ChrisSka83
      I noticed the same thing today, in my case it's the letter “ß”.
      But after checking, the other German characters don't work either.
      Hi Chris,

      Think I found what causing the issue, if I remove my logo or any images from the PDF-template the special chars starts working again. Going to test if I need to resave the image or save the image in another format.

      Comment

      • novastream
        Member
        • May 2021
        • 65

        #4
        So the issue seems to be introduced in domPDF 3.0.0 and is still there in 3.01, 3.0.2 and 3.1.0. You can downgrade to domPdf 2.0.8 by defining version in your composer.json file or if you are not using composer you can just download the domPDF 2.0.8 src package and replace it in your vendor directory.

        If doing it manually you should be aware of that you need to replace vendor\dompdf\dompdf and not vendor\dompdf

        Comment

        Working...