-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix handling UTF-8 characters in FpdfOutput and TcPdfOutput #137
Conversation
Thank you! The style guide states:
Therefore I don't think we should allow the font to be as flexible as this pr makes it. |
I have to say I am lost. I tried to played with FpdfOutput but with no success. I tried some test code like Font has been added, font is also set (I can see it's used) but it has still problem with ěčřšžýýáíé
|
@sprain how should I proceed? |
I gave this PR a try. I used the name |
Looking around it seems that utf8 and FPDF is basically a big pain. Because of stuff like this I use html and convert it with PrinceXML into pdfs in my projects. It just works :) Maybe one could try tFPDF instead? Also, maybe @Franco2911 has an idea, who provided the original |
Hello, a little example maybe can help.
|
That's what I had to replace to make it work. The question is why it works differently for me. I also tried it on our Linux server and it also works there. |
Looks like we're kinda stuck here 🤔 |
I made many and many tests before a good result. Your entire flow must be UTF8 compliant. You have to use utf8 decode on each rows(cell and multicell) |
Closing this due to missing activity. Feel free to re-open if there is a need. |
Fixes #131