I'll bet dollars to donuts that you still have no idea what in CSVWriter's terminology "escape characters" and "quote characters" are; otherwise you wouldn't be passing seemingly random values for those to the constructor.
Tell us this: why are you not using the constructor that takes nothing but the Writer as parameter? That's the one you should be using.
Yes, you did say that. And I replied "Of course there are quotes - that's how CSV works". If the individual cell entries contain commas, then those entries must be quoted. Why do you think that's a problem?
If you're still not sure how CSV works, I suggest to create an example file in Excel -having cells that contain both double quotes and commas- and to save that as a CSV. If you then open it in Notepad and study how the cell contents have (and have not) changed, you will get an understanding of CSV (which apparently so far you have not).
Does that mean that the problem is now solved? Or are you saying that the client requires that there be no double quotes around entries, despite them containing commas? If the latter, then that's impossible, and you need to educate the client on how CSV works.
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop