Skip to content

读取CSV时,值内容遇到双引号会报错 #4086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sai129198 opened this issue Feb 14, 2025 · 1 comment
Open

读取CSV时,值内容遇到双引号会报错 #4086

sai129198 opened this issue Feb 14, 2025 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@sai129198
Copy link

CSV文件数据行有三列:
"a","b","12"ef"34"

读取时报错:
java.io.UncheckedIOException: java.io.IOException: Invalid char between encapsulated token and delimiter at line: 1, position: 14
at org.apache.commons.io.function.Uncheck.wrap(Uncheck.java:339)
at org.apache.commons.io.function.Uncheck.get(Uncheck.java:199)
at org.apache.commons.csv.CSVParser$CSVRecordIterator.getNextRecord(CSVParser.java:149)
at org.apache.commons.csv.CSVParser$CSVRecordIterator.hasNext(CSVParser.java:158)
at com.alibaba.excel.analysis.csv.CsvExcelReadExecutor.execute(CsvExcelReadExecutor.java:79)
at com.alibaba.excel.analysis.ExcelAnalyserImpl.analysis(ExcelAnalyserImpl.java:124)
at com.alibaba.excel.ExcelReader.read(ExcelReader.java:66)
at com.alibaba.excel.ExcelReader.read(ExcelReader.java:56)
at com.alibaba.excel.read.builder.ExcelReaderSheetBuilder.doRead(ExcelReaderSheetBuilder.java:65)

@sai129198 sai129198 added the bug Something isn't working label Feb 14, 2025
@qupei
Copy link

qupei commented Apr 15, 2025

请问后来解决了吗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants