datatables export pdf with utf-8 support

2019-03-02 21:31发布

问题:

I'm using datatables to export table as excel, pdf. Every thing works fine except this: Export pdf and the table contains non English characters (like Arabic). In this case the pdf show strange characters. So how could I fix Arabic characters problem in pdf export?

回答1:

See the pdfmake documentation on the topic of custom fonts. My guess (hard to say without being able to see the page) is that the default pdfmake font doesn't include those characters.



标签: datatables