Like a proper CSV format you need to determined three specials characters :
* The field delimiter
* The end-of-line character
* The quote character (for protecting the delimiter and the end-of-line character)
For exemple :
* The field delimiter : ,
* The end-of-line character : "
* The quote character (for protecting the delimiter and the end-of-line character) : \n
This line :
toto,tata,"toto,tata"\n
Should be read as 3 fields (toto), (tata) and (toto,tata)