Some characters becomes ?? in pdf templates after upgrade

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • novastream
    replied
    Originally posted by yuri
    I'm really perplexed why I cannot reproduce. Nevertheless I added the metatag now. Hope it won't break anything.
    Yeah, feels like maybe it has something to do with our localization or maybe database table collation? Nevertheless I don't understand why it only triggers when adding a image . Thank you for your time and help.

    Leave a comment:


  • yuri
    replied
    I'm really perplexed why I cannot reproduce. Nevertheless I added the metatag now. Hope it won't break anything.

    Leave a comment:


  • novastream
    replied
    Originally posted by yuri
    Could you show the raw HTML (code view) of your minimum example?
    Sorry, here it is:
    Click image for larger version

Name:	image.png
Views:	259
Size:	10.1 KB
ID:	114180
    Click image for larger version

Name:	image.png
Views:	231
Size:	13.7 KB
ID:	114181

    Leave a comment:


  • yuri
    replied
    Could you show the raw HTML (code view) of your minimum example?

    Leave a comment:


  • yuri
    replied
    Still could not reproduce.

    Leave a comment:


  • novastream
    replied
    So back to version 3.0.0 I found this in the dompdf documentation:
    HTML to PDF converter for PHP. Contribute to dompdf/dompdf development by creating an account on GitHub.


    and by adding:
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>

    to application\Espo\Tools\Pdf\DomPdf\HtmlComposer.php (below {$titleHtml} in the composeHead function seems to solve the issue for me.

    Leave a comment:


  • novastream
    replied
    Originally posted by novastream

    I'm using Dejavu Sans and tested a couple of the default fonts without any success. Only time I got it to work where when I removed my company logo. I also installed a fresh version of EspoCRM on my desktop computer and could reproduce the error when created a simple layout with ÅÄÖ and a image.

    Tested all the dompdf versions mentioned above and with 2.0.8 the issue dissapeared.
    I've also attached a minimal example:
    Click image for larger version

Name:	image.png
Views:	263
Size:	41.9 KB
ID:	114162

    And this is the result:
    Click image for larger version

Name:	image.png
Views:	238
Size:	31.3 KB
ID:	114163

    Leave a comment:


  • novastream
    replied
    Originally posted by yuri
    It works fine for me. With an image in a template.

    Maybe using custom fonts?
    I'm using Dejavu Sans and tested a couple of the default fonts without any success. Only time I got it to work where when I removed my company logo. I also installed a fresh version of EspoCRM on my desktop computer and could reproduce the error when created a simple layout with ÅÄÖ and a image.

    Tested all the dompdf versions mentioned above and with 2.0.8 the issue dissapeared.

    Leave a comment:


  • ChrisSka83
    commented on 's reply
    I didn't even have a picture in the template.
    I also use this function to print labels and there was only a QR code and text on it.
    Umlauts were always displayed as “??”.
    Texts with ä,ö,ü,ß -> ??

    But with the old version 2.0.8 I don't have these problems.

  • yuri
    replied
    It works fine for me. With an image in a template.

    Maybe using custom fonts?

    Leave a comment:


  • ChrisSka83
    replied
    I have now simply replaced the current version with version 2.0.8.
    And... now I have my special characters again.
    Thank you novastream

    Leave a comment:


  • novastream
    replied
    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

    Leave a comment:


  • novastream
    replied
    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.

    Leave a comment:


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

    Leave a comment:


  • 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?
Working...