From 8c6dd54a672ecc8ca55f25830403ab8a1bde1ee9 Mon Sep 17 00:00:00 2001 From: Jade <2292106130@qq.com> Date: Wed, 25 Sep 2019 15:32:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCsvParser=E8=A7=A3=E6=9E=90?= =?UTF-8?q?=E6=9C=80=E5=90=8E=E5=AD=97=E7=AC=A6=E4=B8=B2=E5=A4=9A=E4=B8=A4?= =?UTF-8?q?=E4=B8=AA[""]=E7=9A=84=E9=97=AE=E9=A2=98=20https://gitee.com/lo?= =?UTF-8?q?olly/hutool/issues/I12H4Y=3Ffrom=3Dproject-issue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/cn/hutool/core/text/csv/CsvParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hutool-core/src/main/java/cn/hutool/core/text/csv/CsvParser.java b/hutool-core/src/main/java/cn/hutool/core/text/csv/CsvParser.java index 50f838e7d..09ed65a08 100644 --- a/hutool-core/src/main/java/cn/hutool/core/text/csv/CsvParser.java +++ b/hutool-core/src/main/java/cn/hutool/core/text/csv/CsvParser.java @@ -189,7 +189,7 @@ public final class CsvParser implements Closeable, Serializable { if (localPreChar == config.fieldSeparator || localCurrentField.hasContent()) { //剩余部分作为一个字段 - currentFields.add(localCurrentField.toStringAndReset()); + currentFields.add(StrUtil.unWrap(localCurrentField.toStringAndReset(), config.textDelimiter)); } break; }