Closed Fank closed 4 years ago
You will need to either fuss with code pages (see this example) or load a UTF-8 TrueType font (see this example).
Ok, but why doesn't it support utf-8 by default?
This is the first golang library where i had encoding issues by default.
Ok, but why doesn't it support utf-8 by default?
This package was ported from FPDF which itself does not support UTF-8. UTF-8 support in gofpdf was added earlier this year. Additional work will be needed to apply this support to the reader-embedded fonts. Use gopdf if you don't want to bother with code pages.
Thanks for the info and help, problem solved.
I tried following
And this is the result