login about faq

I have a CSV file, the fields are delimited with commas and double quotes, but sometimes a field will have a single double quote. How do I get the chilkat CSV function to read this in correctly?

The sample I have is


"ABC123","4","40" HD TV"

I have tried escaping the single double quote but this has not helped. How can I import this as I want?

asked Jun 18 '12 at 11:33

JJD's gravatar image


A double-quote that occurs within a double-quoted string should be represented as a pair of double quotes, like this:

"ABC123","4","40 ""HD TV"


answered Jun 19 '12 at 09:09

chilkat's gravatar image

chilkat ♦♦

For more information about CSV standards, see http://en.wikipedia.org/wiki/Comma-separated_values


answered Jun 19 '12 at 09:11

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Jun 18 '12 at 11:33

Seen: 1,643 times

Last updated: Jun 19 '12 at 09:11

powered by OSQA