I have only a HTML page and need to export a table as Excel document. There is no back-end. Must achieve this only with Javascript.
I am doing export process with this line of js;
window.open('data:application/vnd.ms-excel,' + encodeURIComponent($('#excelContainer').html()));
And HTML page has this meta tag;
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
But my table contains some Turkish special chars and Excel doesn't show them correctly.
I've done a research but all solutions works from back-end so need a little help.
Thanks!