This issue has been migrated from the Forge. Read the original ticket here.
Title is self-explanatory. Japanese characters in the invoice PDF are showing as undefined characters . In the attachment these correspond to customization text field values.
This comment has been migrated from the Forge. Read the original comment here.
Cela doit s'afficher correctement quelle que soit la langue.
This comment has been migrated from the Forge. Read the original comment here.
Hello Khouloud BELGUITHÂ
Can you tell me if there is still this issue on 1.7.4.1 ?
Thanks
This comment has been migrated from the Forge. Read the original comment here.
Hi Marion F,
I manage to reproduce the issue with 1.7.4.1.
Best regards, Khouloud
There is still this issue on 1.7.5.0, is there a plan to fix this issue soon?
cc @khouloudbelguith @marionf
Hi @BenTen,
I manage to reproduce the issue with PS1.7.5.2.
This issue is added to our bug roadmap.
There are some major issues to solve before this one.
PrestaShop is an open source project, so it can be solved before if someone submits a pull request to solve it.
Thanks!
I hope that someone can fix this issue soon, because invoices for my Japanese customers are dummy.
Delivery Addresses and Billing Addresses are in a _beautiful square mode_.
It can be reproduced also if you order a product with Russian Ruble (symbol: ₽) currency
Is this fixed in version 1.7.6.2? Anybody knows what's causing this problem?
Hi @imcoddy,
Sorry, not fixed yet.
PrestaShop is an open-source project, so it can be solved before if someone submits a pull request to solve it.
Thanks!
@khouloudbelguith
I am wondering if anyone knows which part went wrong. IMO it should be the PDF not supporting UTF-8 charset, but I've no idea where to start looking into.
Let me know if you have a clue
Problem is due to usage a wrong font in PDF caused by wrong iso code
Some language need a special font to print characters: https://github.com/PrestaShop/PrestaShop/blob/1.7.6.x/classes/pdf/PDFGenerator.php#L40
Depending on Language iso code : https://github.com/PrestaShop/PrestaShop/blob/1.7.6.x/classes/pdf/PDFGenerator.php#L138
Root cause is we always send language based on Context : https://github.com/PrestaShop/PrestaShop/blob/1.7.6.x/classes/pdf/PDF.php#L108
So if we are in BO with language English, en
iso code will be used and font associated to this iso code do not support this characters
Hi
I am using Prestashop 1.7 and In print order I have an awful design.
please help me to have and invoice order like something that I see in this page. Our language is Persian (RTL). please let me have a file to upload in PDF part of my server to solve this
Most helpful comment
Problem is due to usage a wrong font in PDF caused by wrong iso code
Some language need a special font to print characters: https://github.com/PrestaShop/PrestaShop/blob/1.7.6.x/classes/pdf/PDFGenerator.php#L40
Depending on Language iso code : https://github.com/PrestaShop/PrestaShop/blob/1.7.6.x/classes/pdf/PDFGenerator.php#L138
Root cause is we always send language based on Context : https://github.com/PrestaShop/PrestaShop/blob/1.7.6.x/classes/pdf/PDF.php#L108
So if we are in BO with language English,
en
iso code will be used and font associated to this iso code do not support this characters