1 year ago

#70285

test-img

Rob

export HTML table to Excel correctly with €/$/£ Symbol

I'm using this function by export html table to excel file.

function ExportToExcel() {
    var htmltabel = document.getElementById("tabella_finale");
    var html = htmltabel.outerHTML;
    window.open('data:application/vnd.ms-excel,'+ encodeURI(html)); 
}

it works correctly but when I open .xlsx file , euro symbol doesn't show correctly. It shows

€ 90.15

instead of

€90.15

javascript

excel

character-encoding

0 Answers

Your Answer

Accepted video resources