export encode

export encode

grief89grief89 Posts: 2Questions: 0Answers: 0
edited August 2013 in DataTables 1.9
Hello!
I am new in DataTables.

I have code:
$('#hor-minimalist-b').dataTable( {
"sDom": 'T<"clear">lfrtip',
"oTableTools": {
"sSwfPath": "/Scripts/DataTables/extras/TableTools/media/swf/copy_csv_xls_pdf.swf",

"aButtons": [
"copy",
{
"sExtends": "csv",
"sCharSet": "utf8",
},
"xls",
{
"sExtends": "pdf",
"sCharSet": "utf8",
},
]
}
} );

export works. data contains russian words. And if I will exported 'csv' or 'pdf' then file will contains 'Рљ 502 Р•Р'. I set 'sCharSet', but its not helping.
What must I do?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    PDF export does not support UTF8. There are a number of discussions in this forum about that.

    However, it should work for CSV export. Please link to a test case showing the issue.

    Allan
  • grief89grief89 Posts: 2Questions: 0Answers: 0
    This is example http://live.datatables.net/equpoh/21/edit, but in buttons not showing. May be I incorrect added sSwfPath
This discussion has been closed.