Chinese translation report export to pdf display "???"
Chinese translation report export to pdf display "???"
kay
Posts: 1Questions: 0Answers: 0
I have few language for my report. However, when in Chinese simplified, the pdf that been export shows "???" in all the header and footer. Anyone has idea how to fix this?
The way I did is echo the php translation key into the javascript. It is working on the report that being generated and display on browser. However, not on the exported pdf file report.
Example aoColumns:
"aoColumns": [
{ "sTitle": "<?php echo $lang['report-card number'];?> ", "mData": "membership", "sType": "string", "bSearchable": false, sDefaultContent: "n/a", "bSortable":false},
{ "sTitle": "<?php echo $lang['report-registration date'];?>", "mData": "reg_date", "sType": "string", "bSearchable": false, sDefaultContent: "n/a", "bSortable":false},
{ "sTitle": "<?php echo $lang['report-email'];?> ", "mData": "reg_email", "sType": "string", "bSearchable": false, sDefaultContent: "n/a", "bSortable":false},
],
Example my header and footer:
<?php echo $lang['card number'];?>
<?php echo $lang['report-registration date'];?>
<?php echo $lang['report-email'];?>
The way I did is echo the php translation key into the javascript. It is working on the report that being generated and display on browser. However, not on the exported pdf file report.
Example aoColumns:
"aoColumns": [
{ "sTitle": "<?php echo $lang['report-card number'];?> ", "mData": "membership", "sType": "string", "bSearchable": false, sDefaultContent: "n/a", "bSortable":false},
{ "sTitle": "<?php echo $lang['report-registration date'];?>", "mData": "reg_date", "sType": "string", "bSearchable": false, sDefaultContent: "n/a", "bSortable":false},
{ "sTitle": "<?php echo $lang['report-email'];?> ", "mData": "reg_email", "sType": "string", "bSearchable": false, sDefaultContent: "n/a", "bSortable":false},
],
Example my header and footer:
<?php echo $lang['card number'];?>
<?php echo $lang['report-registration date'];?>
<?php echo $lang['report-email'];?>
This discussion has been closed.
Replies
http://datatables.net/forums/discussion/6680/tabletools-utf-8-in-pdf-format/p1
http://www.datatables.net/forums/discussion/3762/how-to-export-to-pdf-with-utf-8-for-hebrew-table/p1
http://datatables.net/forums/discussion/comment/45449
Allan