php-export-data icon indicating copy to clipboard operation
php-export-data copied to clipboard

csv comma separted values ==> ";"

Open mikadev opened this issue 9 years ago • 4 comments

At 129 the separator is wrong so i added a parameter with default values

mikadev avatar Jul 22 '15 16:07 mikadev

I'm not sure I understand. "," is a comma and ";" is a semicolon. I'm fine with adding semicolon as an optional delimiter, but is there a reason you prefer it over the more common comma?

elidickinson avatar Jul 22 '15 17:07 elidickinson

you ever try export csv with your separator and open it ? the result is completly weird. and is the default separator you can try with save as csv.

mikadev avatar Jul 22 '15 17:07 mikadev

Opening it in Excel, you mean? Weird how?

My intent is that exporting to CSV should produce a file that looks as close to "official" CSV format as is possible, not just what works best with Excel. Also, my Excel Mac 2011 exports with commas not semicolons by default when doing "save as..."

elidickinson avatar Jul 22 '15 23:07 elidickinson

it depends on the country for exemple in france the default separator is the semicolon so i propose you to add an optional parameter with default value ==> ","

mikadev avatar Jul 23 '15 16:07 mikadev