How do you parse a CSV file using gawk? Simply setting FS=\",\" is not enough, as a quoted field with a comma inside will be treated as multiple fields.
FS=\",\"
The gawk version 4 manual says to use FPAT = "([^,]*)|(\"[^\"]+\")"
FPAT = "([^,]*)|(\"[^\"]+\")"
When FPAT is defined, it disables FS and specifies fields by content instead of by separator.
FPAT
FS