JS Reports doesn't show the Chinese language properly
-
I have created the report with phantom pdf version 1.9.8. I have around 10 langugae to be supported and i have created the corresponding locale files. it works fine for all the langugages. but for Chinese it comes weird like below.
i tried few work arounds mentioned in some articles like adding fonts etc. but did not work for me. could you please help me find a solution for this.
-
Does it print properly for you in the playground?
https://playground.jsreport.net/
-
Yes it does. i tried it in playground and it works fine. does it have anything to do with the server? the playground server and the server what i have could be different. I current have Linux.
I also tried adding few font woff and ttf like mentioned here https://forum.jsreport.net/topic/316/pdf-cannot-display-the-correct-charset-even-utf8-was-set-at-html-meta-tag/4 but it didn't help. there are plenty of fonts mentioned here. will it be possible for you to tell me which font exactly i need add if its linux server?
-
You can find the fonts installed in the playground here
https://github.com/jsreport/jsreport/blob/master/packages/worker/Dockerfile#L16