How to print tilde characters correctly with PDFKit?
-
28-10-2019 - |
Question
When converting HTML to a PDF document characters such as é or ñ are printed as question marks. How can I display them correctly in the PDF document?
Solution
Make sure you are setting the encoding on your HTML to UTF-8. It is probably trying to interpret it as US-ASCII
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow