Ticket #2136 (closed enhancement: fixed)
CSV driver specific dataset creation option "SEPARATOR=SEMICOLON"
| Reported by: | sfkeller | Owned by: | rouault |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.7.0 |
| Component: | OGR_SF | Version: | unspecified |
| Severity: | normal | Keywords: | csv seperator |
| Cc: | warmerdam |
Description
Currently the CSV writer outputs commas (",") as field value separators (or delimiters). This follows "best practices" of CSV but fails to serve MS Excel as expected. In order to support also a non-negligible amount of Windows (and Mac) users I suggest to be able to specify also semicolon or tab as separator.
Proposal: CSV driver specific dataset creation option for field value separators, called SEPARATOR where commas are the default. This may be overridden through use of the dataset creation option SEPARATOR which may have a value of COMMA, SEMICOLON, or TAB. Example: ogr2ogr -f CSV -dsco SEPARATOR=SEMICOLON out myfile.shp
