-
Notifications
You must be signed in to change notification settings - Fork 1.8k
UTF-8 issues #3108
Comments
I forgot to mention I am trying to run it from the command line, I tried with an --encoding option but it didn't help. Thanks |
Please supply a small HTML file that exhibits this problem, and the complete command line. Are you using unusual fonts? (such as downloaded with @ face) Does it work OK with, say, just 'serif' and 'sans-serif' font-families, or default, fonts? Are unaccented Latin characters (ASCII) coming out OK, but anything accented is not? Does your HTML display OK in browsers? I've seen accented text actually entered (edited) in Latin-1, rather than UTF-8, and thus fail to convert. |
Hello... Thank you one more time. |
I see 4 different alphabets (scripts) on this page. The first, which you say doesn't show up at all, I don't recognize. The following three are Greek, Cyrillic, and Latin alphabets. Although they show up in my browser, I would not be the least surprised if the first alphabet (what is it?) is rare enough that the UTF-8 font(s) used by the first line don't include those characters. I don't think PDF and browsers necessarily use the same font files. You are going to have to find what fonts you're using here (apparently the default ones), what alphabet is used in the first line, and ask someone familiar with this whether those characters should be expected to show up. If not, you may have to embed the font information in the PDF (watch out for copyright issues!), if you find one that works on your PC. The Greek line might include archaic character(s) that most PDF fonts don't include. Is it a missing glyph or box, or some more serious error reported? It could be useful for you to attach the PDF, so someone can possibly see what is going on. |
The first line is a Georgian language and the second one (Greek) is a normal Greek text. Cyrillic letters seem to be working. How do we include custom fonts into the PDF and how do we tell wkhtmltopdf to look for fonts in the different directory (or what's the default directory to look for)?... Thank you very much for the help. |
It's not an issue, I am sorry, I had to install additional fonts on the system... The issue is close, thanks for the help!. |
@xokaido what did you install exactly? Tried
none worked. the output of locale
|
I've figured it out solution is here I have also solved this by just copying
to my remote server to then |
@ohadperry |
@ohadperry Thanks! this solved my issue as well |
Hello...
I've got wkhtmltopdf 0.12.3 running on centos 7.
It seems to convert HTMLs into PDFs but UTF-8 characters are either missing (empty fields) or displayed as squares.
Thanks
The text was updated successfully, but these errors were encountered: