Blog

Back to blog posts

[Solved] Issue rendering UTF-8 or Unicode characters in HTML and PDFs

Published Dec 11, 2018

Intro

Api2Pdf is popular all over the world and therefore we have customers who need to generate PDFs in many different languages. One problem that has come up recently is that a customer needed to render characters from their native language: Dutch. Dutch has some special characters that require unicode or UTF-8. For example, these: éëïóöü. But, when PDFs were being generated, it was showing up as: Ã©Ã«Ã¯Ã³Ã¶Ã¼

Render Special Characters in PDF

To add unicode and utf-8 in PDFs, you need to add <meta charset=”UTF-8″> to the <head> section in your HTML. That’s all there is to it!