Question marks in sent invoice PDF (no UTF-8)?

  • Posts: 41
  • Thank you received: 9
10 years 9 months ago #145613

-- HikaShop version -- : 2.3.0 Business
-- Joomla version -- : 2.5.18

Hello!

Just today made upgrade from Hikashop 2.2.2 to 2.3.0. Mostly everythings works fine, except that for some reason PDF Invoices sent to customers through e-mail now are missing special characters (ā, ī, ū, š, etc.) and have question marks "?" in their place. Funny thing is that when I download invoices through Hikashop backend, all characters are ok, so the problem seems to be only with Invoices being sent via email.

Could you please help me out? What's changed in latest update in relation to PDF sending procedure?

Please Log in or Create an account to join the conversation.

  • Posts: 13201
  • Thank you received: 2322
10 years 9 months ago #145762

Hi,

Thanks to try to edit the files "plugins\hikashop\attachinvoice\attachinvoice.php" and "plugins\hikashop\attachinvoice\attachinvoice\invoice.php" with notepad++ and change the encodage by clicking on "encodage" and select "UTF-8 (without BOM)".

There was maybe an encodage issue after the last edition of that file.

The following user(s) said Thank You: Savickis

Please Log in or Create an account to join the conversation.

  • Posts: 41
  • Thank you received: 9
7 years 7 months ago #267739

Hello! Some three years have passed, and the problem is back - again all special glyphs are missing from invoice (only product names are displayed correctly with all characters).

This time saving with UTF-8 doesn't help. Any suggestions?

EDIT:

I tried out what fellow from Lithuania suggested in this topic , and it seems to be true - changing the font from Arial to Freesans indeed seems to fix problem with encoding characters. But I need to support both bold text AND our local characters.

Last edit: 7 years 7 months ago by Savickis.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
7 years 7 months ago #267745

Hi,

The issue is that the other font you're using doesn't support the characters. That's why you have to use another font.
Unfortunately, besides using another font, I don't see any alternative. Now you can add CSS to the PDF invoice to style the font the way you want: stackoverflow.com/questions/991160/how-t...-font-bold-using-css
You can do that in the file plugins/hikashop/attachinvoice/attachinvoice/invoice.php

Please Log in or Create an account to join the conversation.

Time to create page: 0.065 seconds
Powered by Kunena Forum