Arabic language as column name

naser masalma asked on July 15, 2019

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.
 

Attachments:
Capture.PNG

1 answer

Public
Tanya Gryshko Flexmonster July 16, 2019

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:

  1. Specify the encoding for your HTML page to UTF-8 using the 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.

  2. If you are not able to change the content of your HTML file, you can embed Flexmonster Pivot in a separate JS file with specified UTF-8 encoding.
    <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

Please login or Register to Submit Answer