0

我有这样的 CSV 数据(完全引用,逗号分隔,记录以 ';' 结尾:

"595010","MHD-10 SKIBUS Usti n.L., Divadlo - Telnice, Zadni Telnice","25013891","A","A","0","0","0","0","","","","","23122017","11032018","1","1";

我配置了我的 Apache CSV 解析器:

CSVFormat.newFormat(',')
    .withQuoteMode(QuoteMode.ALL)
    .withQuote('\"')!!
    .withRecordSeparator(';')

但是当我试图解析它时,我得到了错误

java.lang.IllegalStateException: IOException reading next record: java.io.IOException: (line 1) invalid char between encapsulated token and delimiter

当解析器处理';'。我究竟做错了什么?谢谢你的回答

4

0 回答 0