react-csv / react-csv

React components to build CSV files on the fly basing on Array/literal object of data

Home Page:http://react-csv.github.io/react-csv/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

File .csv not open directly with Excel

joseRamonLeon opened this issue · comments

Hi friends!

I have just arrived with React and i have use your library ;-).

My problem is just when we exported the CSV file. It uses "," between elements and Excel can not open csv file directly/correctly (Windows). It works when use Import from CSV file.

Is there a way to change the commas (",") to semicolons (";) when exporting?

A lot of thanks!! Best regards from Spain,

You can specify the saparator like so:

<CSVLink data={array} separator={";"}>
    Download me
</CSVLink>