使用<a download="">

时间:2019-03-29 17:28:37

标签: html csv

I am working on a website where users can fill in information on HTML forms and the data is saved to a CSV file. I have also added an admin panel where the admin can download those CSV files. However, when I open them in Excel, some strange characters are prepended to the file.

I have read and found that these characters are the UTF-8 BOM characters, but is it possible to download the file in a different encoding that will be supported with Excel, such as WINDOWS-1252?

<a href="boards.csv" download>

0 个答案:

没有答案