export encode
export encode
grief89
Posts: 2Questions: 0Answers: 0
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?
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?
This discussion has been closed.
Replies
However, it should work for CSV export. Please link to a test case showing the issue.
Allan