JavaScript: how to Download CSV file containing French text with UTF-8 encoding
问题 I am trying to download CVS file using JavaScript. That CSV contains text in French language. I am creating file using blob var blob = new Blob([ csv ], { type : 'text/csv;charset=utf-8' }); var csvUrl = window.URL.createObjectURL(blob); But when i open the csv file it shows the content in ANSII format due to which French characters are converted to some unknown characters. But if i open the same file as text, the encoding is ok (UTF-8). Example: Text I am trying to download "Opération" Text