Support

Home Forums Event Espresso Premium PDF encoding issue

PDF encoding issue

Posted: June 26, 2014 at 9:13 am


Olivier Tarbes

June 26, 2014 at 9:13 am

Hello,

When downloading the final PDF, the accents shows somthing like this :
“Facturer à :
ÉéÈèÀà Wasteels
3668-B St-Laurent
Montral

In wp-config I have a “define(‘DB_CHARSET’, ‘utf8’);”

Do you know what to do for this ?

Thanks !!


Lorenzo Orlando Caum

  • Support Staff

June 26, 2014 at 12:24 pm

Hi Olivier, what version are you seeing this issue with?


Lorenzo


Olivier Tarbes

June 26, 2014 at 12:27 pm

using EE 4.2.6
WP 3.9.1 Multisite

I don’t have this issue on my localhost though…


Sidney Harrell

June 26, 2014 at 1:02 pm

Try changing line 100 of plugins/event-espresso/gateways/invoice/function.pdf.php from:

return iconv("UTF-8", "ISO-8859-1",stripslashes_deep($val));

to:

return iconv('UTF-8', 'windows-1252', html_entity_decode(val));


Olivier Tarbes

June 26, 2014 at 1:08 pm

Hello,

Thanks for quick reply

Unfortunately I don’t find this file … is it for EE3 maybe ?

Thanks


Josh

  • Support Staff

June 27, 2014 at 8:09 am

Hi Olivier,

Yes, the code that was posted was for Event Espresso 3. You mention that you’re not seeing the issue on localhost. Are you running the same plugins and themes on localhost? Can you compare the two database’s collation to see if they match?


Olivier Tarbes

June 27, 2014 at 9:10 am

all table are in utf8_general_ci in both environment,
with same plugins and versions also


Josh

  • Support Staff

June 27, 2014 at 12:32 pm

Hi Olivier,

Is your localhost running a different server OS than your multisite? One you that you could try to narrow down the cause of the issue is set up a temporary Multisite site with only Event Espresso 4 active to see if the issue persists on the other site.


Olivier Tarbes

July 2, 2014 at 1:02 pm

Can you tell me what library or php module you’re using to generate the PDF ? this will help me in my research


Josh

  • Support Staff

July 2, 2014 at 1:29 pm

Hi Olivier,

Event Espresso 4 uses the DOMPDF library for the PDF invoices.

The support post ‘PDF 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