node-html-pdf icon indicating copy to clipboard operation
node-html-pdf copied to clipboard

Japanese characters not showing correctly on PDF

Open typing101 opened this issue 8 years ago • 5 comments

I'm using a font that supports Japanese characters (Lato), everything shows fine when the PDF is purely English, but when I throw in some Japanese characters it doesn't render them. I'm thinking it's an encoding issue, but I'm not sure how to set encoding type once the PDF is rendering.

typing101 avatar Jul 17 '18 09:07 typing101

I have a same problem. Did you fixed it ?

nontachaiwebdev avatar Aug 04 '18 08:08 nontachaiwebdev

Chinese characters cannot be displayed in CentOS7

FeLiX-LiM avatar Sep 11 '18 09:09 FeLiX-LiM

I have the same issue with pt-br chars like ç and ã.

mvelosus avatar Oct 26 '18 14:10 mvelosus

You need to install the proper fonts on your server. For me on Ubuntu it was:

sudo apt-get install language-pack-ja
sudo apt-get install japan*
sudo apt-get install language-pack-zh*
sudo apt-get install chinese*

Gujie-Novade avatar Nov 22 '18 02:11 Gujie-Novade

@Gujie-Novade your solution worked for me. Thanks!

mewelling avatar Mar 12 '19 16:03 mewelling