- Issue created by @Steven Snedker
- 🇬🇧United Kingdom griz
Thank you for raising this issue. It would probably have taken me a long time to realise this was caused by twig development mode otherwise.
If you go to /admin/config/development/settings and check "Twig development mode" and try to print a node with special chars like æøå (or even æøå
), these special characters will fail to print correctly in the PDF.
You'll get ugly stuff like à ̧ and Ã¥. No matter what font you are using. No matter how you try to encode the HTML.
Use Entity Print with the DomPDF engine.
Fill node 1 with special characters in a typical CKeditor 5 body field.
Ask to see /print/pdf/node/1
You can paste special characters from a good source like this one.
Warn people about Twig development mode at /admin/config/content/entityprint
The warnings are currently generated by /entity_print/src/Form/SettingsForm.php does it.
Active
2.0
Code
Thank you for raising this issue. It would probably have taken me a long time to realise this was caused by twig development mode otherwise.