18
Views
1
Comments
Solved
[HTML2PDF] Generated PDF cannot show Chinese character
Question
html2pdf
Service icon
Forge asset by Miguel Antunes
Application Type
Service

I tried to generate pdf with Chinese but it turns out to show the square blocks.

The html code includes  and still the blocks.


Any thing can do to fix the locale/ language problem?


Screenshot 2023-03-14 175931.png
2024-05-02 09-49-04
Murali Manoharan V
Champion
Solution

Hi Jocelyn


One possible cause is that the font used does not support the double-byte character. In this case, the font "Arial" is used which does not support Chinese character. Try the font "Arial Unicode MS". I hope it won't show as boxes in pdf.


Regards

Murali

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.