Support special characters in your PDF invoices with UTF-8

When you are using the SolidShops PDF invoices feature to automate the generation of your invoices in any style you want, you can run into a problem when your clients have non standard characters in their names.

Using characters such as æ ø å og Æ Ø Å can generate some weird looking stuff in your final invoices. Luckily, there is an easy way to solve this. Open up your PDF invoice template and make sure you add the following meta tag in the head of your template.

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

When generating the final invoice, we will detect the meta tag and use UTF-8 encoding in your invoice. This is tech-speak for “we will make sure that any non default characters get shown properly in your invoices”.

Thanks to our user Jon to make us aware of this problem.