Skip to content

3.0.5版本读取CSV文件,head为中文时无法读取,autoTrim无效 #2227

Closed
@fufeiii

Description

触发Bug的代码
读取一个CSV文件,第一行的标题头为中文,使用@ExcelProperty加标题名的方式读取不出数据(字段都为null),使用@ExcelProperty加index的方式可以读取,autoTrim参数无效

 EasyExcel.read(new File(localFileUrl))
 .excelType(ExcelTypeEnum.CSV)
 .head(FileHead.class)
.headRowNumber(1)
.autoTrim(true)

Metadata

Assignees

Labels

bugSomething isn't workingpending verificationThis problem needs to be confirmedplanningIt may be developed later

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions