"I need to know what to do with a csv export in which i would like the entire field content to be enclosed with quotes. My problem is with fields that include commas. "
A CSV file means comma seperated values. Therefore, the fields are delimited by commas. Each field will not have commas as part of their values (for if it did, it would screwup the formatting and ability to parse).
For example:
First, Last, Street Address, City, State, Zip
Joe, Smith, 123 Elm Street, Los Angeles, California, 90210
Bad example:
First, Last, Street Address, City, State, Zip
Joe, Smith, 123 Elm Street, Los, Angeles, California, 90210
If there was a comma between Los and Angeles, you would be screwed.
So when you say:
"My problem is with fields that include commas", there can't be commas in the fields for a CSV formatted file. I just wanted to clear that part up.
Give us an example of how you want to see the CSV file.
is it like this?
First, Last, Street Address, City, State, Zip
"Joe", "Smith", "123 Elm Street", "Los Angeles", "California", "90210"
Why do you want to enclose in double quotes? Is it because some data may have a comma as part of its value? If so, why not use another delimiter?