How to deal with comma in quote for csv file in Java? -



How to deal with comma in quote for csv file in Java? -

i using opencsv read csv file. fields separated comma. in 1 field, if contains quote, comma within quote not delimiter. example, "hello, world".

the current opencsv cannot deal that. how address problem?

update

i found not problem of comma (so far). problem row is:...,"a children""s heart\",.... seems remove quote, read field becomes a children"s heart",...... , ...... represent next data.

it seems not problem of opencsv, mess of input data.

you can write custom code search through csv file , replace comma's within quotes , or special character can identify later , place comma.

java csv quotes comma opencsv

Comments

Popular posts from this blog

How do I check if an insert was successful with MySQLdb in Python? -

delphi - blogger via idHTTP : error 400 bad request -

postgresql - ERROR: operator is not unique: unknown + unknown -