i have this problem. when i try to return arabic names as column name from the table.
also i want to ask if i can to export arabic and english character in the same pdf file.
Hello, Naser,
Thank you for writing to us.
If you use an alphabet with special characters you must use UTF-8 encoding. There are two ways to do this:
content-type
HTTP header or the corresponding meta
tag:
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
Content from a database also must be encoded as UTF-8.
<script src="yourfile.js" charset="UTF-8"></script>
Also, some useful information is available in this forum thread: https://www.flexmonster.com/question/how-to-add-arabic-language-support-to-flexmonster/.
Speaking of exporting Arabic and English character in the same PDF file, you only need to provide an appropriate TTF font file while using exportTo()
API call. Also, we have prepared a list of ready-to-use Google Noto Fonts that you can use to support almost any language in the world. Please note, that only fonts in standard TTF format are supported. Example of usage:
flexmonster.exportTo('pdf', { fontUrl: 'https://cdn.flexmonster.com/fonts/NotoSansCJKtc-Regular.ttf' });
Please let us know in case of questions.
Regards,
Tanya