I am trying to export an HTML table to Excel using javascript. This is the javascript code
function exportData(report_id){ var blob = new Blob([document.getElementById(report_id).innerHTML], { type: "text/plain;charset=utf-8;" }); saveAs(blob, "Report.xls"); }
Takes table data as plain text and save as Excel without encoding problem