Hebrew characters appears as question marks
Hebrew characters appears as question marks
gilad@actualtech.co.il
Posts: 3Questions: 2Answers: 0
When clicking the save button and save the table as csv, pdf or other - hebrew characters appear as gibberish(csv)/question marks(pdf).
Any solution to this problem?
This discussion has been closed.
Answers
Are you using TableTools or Buttons for the export? Can you please link to a test page showing the issue, as requested in the forum rules.
Allan
This is an app that i develop, so there is no external link..
this is the code of the table init:
"
var tableTools = new $.fn.dataTable.TableTools(tbl, {
sRowSelect: "os",
sSwfPath: "../Resources/copy_csv_xls_pdf.swf",
aButtons: [
{ sExtends: "editor_create", editor: editor },
{ sExtends: "editor_edit", editor: editor },
{ sExtends: "editor_remove", editor: editor },
{
sExtends: "collection",
sButtonText: "Save",
sButtonClass: "save-collection",
aButtons: ['csv']
},
{
sExtends: "print",
sMessage: " " + " <input type='button' class='printBtn' value='Return To Table' onclick='TableTools.fnGetInstance(\"dt-agents\")._fnPrintEnd({keyCode:27, preventDefault:function(){}})' />"
}
]
});
"
When i am clicking save-> window is open and ask me where i want to save.
then if i try to open it with excel the text(Hebrew one) is shown in "gibberish".
When i am open it with notepad++ the Hebrew text is shown as supposed.
TableTools PDF does not support UTF8 characters, and likely never will due to the fact that the Flash library it uses does support them and appears to be abandoned by its author now.
I would suggest using Buttons if you can.
Allan