Fixing utf-8 character encoding #67
elyrko
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've seen multiple threads here about character encoding and i myself just had to deal with an issue where the characters did not display correctly for my native language.
Basically what i tried was to encode the characters outside the main InvoicePrinter class and it was quite frustrating to see that nothing really worked. I then went to check the main InvoicePrinter class and found out that the class has constant variables set for character encoding which overwrites whatever i try to encode beforehand.
So to set the preferred encoding for your language you must change the constants inside the main konekt/pdf-invoice/src/InvoicePrinter.php class
Or you may extend the main class and overwrite the constants. The preferred way for the future ofcourse would be to have a method for setting the character encoding.
Additionaly for the footer note you still must do it beforehand
Beta Was this translation helpful? Give feedback.
All reactions