The CSV specification (section 2.6. of RFC 4180) defines the following control characters:
- Field separator:
,
- Record delimiter:
\r\n
- Field enclosure:
"
FastCSV uses these control characters by default. However, you can change them using the CsvReaderBuilder
or
CsvWriterBuilder
class.
Using non-standard control characters for Read
In the following example, a CSV file with non-standard control characters is read using FastCSV.
You also find this source code example in the
FastCSV GitHub repository.
Using non-standard control characters for Write
In the following example, a CSV file with non-standard control characters is created using FastCSV.
You also find this source code example in the
FastCSV GitHub repository.