Invalid char between encapsulated token and delimiter in Apache Commons CSV library

后端 未结 5 1672
有刺的猬
有刺的猬 2021-01-03 20:13

I am getting the following error while parsing the CSV file using the Apache Commons CSV library.

Exception in thread \"main\" java.io.IOException: (line 2)          


        
5条回答
  •  既然无缘
    2021-01-03 20:34

    I found the solution to the problem. One of my CSV file has an attribute as follows: "attribute with nested "quote" "

    Due to nested quote in the attribute the parser fails.

    To avoid the above problem escape the nested quote as follows: "attribute with nested """"quote"""" "

    This is the one way to solve the problem.

提交回复
热议问题