Anonymous
Asked in
Cars &Transportation
ยท
2 weeks ago
How do you read a CSV file with commas within a field?
Contents
- How do you handle commas in a CSV file?
- How are commas usually escaped in a CSV file?
- Can CSV files contain commas?
How do you handle commas in a CSV file?
Re: Handling 'comma' in the data while writing to a CSV. So for data fields that contain a comma, you should just be able to wrap them in a double quote. Fields containing line breaks (CRLF), double quotes, and commas should be enclosed in double-quotes.
How are commas usually escaped in a CSV file?
Enclose the field in quotes, e.g. A comma is simply encapsulated using quotes, so , becomes "," . A comma and quote needs to be encapsulated and quoted, so "," becomes """,""" .
Can CSV files contain commas?
In case your Data Loader CSV file for import will contain commas for any of the field content, you will have to enclose the contents within double quotation marks " ". Data Loader will be able to handle this.
Related Questions
Relevance
-
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago -
Anonymous2 weeks ago
Expert answer2 weeks ago
Write us your question, the answer will be received in 24 hours