Support

Home Forums Event Espresso Premium PDF invoice encoding issue

PDF invoice encoding issue

Posted: August 26, 2021 at 4:18 am


dreamimplementation

August 26, 2021 at 4:18 am

Hello,

we have a problem with the character encoding for PDF invoices. All Croatian characters are not displayed correctly. You can test and see the issue here:


Link

After clicking on the link above, please trigger the download of the PDF invoice and check the document. You should notice i.e. that Kuniščak 1B isn’t shown correctly in the PDF. How can we solve this?

Also, I’ve read the previous reports on this topic and can confirm that the server option allow_url_fopen has been enabled.


Tony

  • Support Staff

August 26, 2021 at 8:20 am

Hi there,

The library we use to generate PDF’s does not support those characters by default but we have a pre-release add-on available to allow for it.

First you’ll need to sign up to the Pre-release channel to gain access to it, which can be done following this guide:

https://eventespresso.com/wiki/pre-release-channel-guide/

Then on your account page you’ll have a ‘pre-release’ section which will include a UTF8 template add-on.

Download and install that add-on like any other plugin in Dashboard -> Plugins -> Add new -> Upload plugin, then activate it.

Next, you’ll need to set the Invoice (and likely Receipt) template to use the new font included within it.

We have some documentation on doing this here:

https://eventespresso.com/wiki/ee4-utf-8-template-variation-add/


dreamimplementation

August 27, 2021 at 3:32 am

Hi Tony,

thank you for your answer, but this didn’t help at all.
We are still getting PDFs out with incorrect characters.

Check this Link, click on download and you’ll see in the header that Kuniščak is written as Kuniš?ak


Tony

  • Support Staff

August 31, 2021 at 9:22 am

My apologies, it looks like we need to update the UTF8 add-on the pre-release channel to include the latest changes for DOMPDF included in core, I’ll get that updated soon.

In the meantime, you can use the version HERE.

De-activate and delete the current ‘EE4 UTF8 Template Variation’ add-on you have, then install and activate the above.

That should load the font correctly in the PDF.

The support post ‘PDF invoice encoding issue’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso