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?

Was it helpful?

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
scroll top