This commit is contained in:
Looly
2020-11-09 10:24:09 +08:00
parent ab410d2e93
commit 37dda15906
5 changed files with 16 additions and 3 deletions

View File

@@ -782,7 +782,7 @@ public class URLUtil {
* @since 5.3.11
*/
public static String getDataUriBase64(String mimeType, String data) {
return getDataUri(mimeType, null, "BASE64", data);
return getDataUri(mimeType, null, "base64", data);
}
/**

View File

@@ -16,7 +16,9 @@ public class CsvReaderTest {
public void readTest() {
CsvReader reader = new CsvReader();
CsvData data = reader.read(ResourceUtil.getReader("test.csv", CharsetUtil.CHARSET_UTF_8));
Assert.assertEquals("关注\"对象\"", data.getRow(0).get(2));
Assert.assertEquals("sss,sss", data.getRow(0).get(0));
Assert.assertEquals("性别", data.getRow(0).get(2));
Assert.assertEquals("关注\"对象\"", data.getRow(0).get(3));
}
@Test

View File

@@ -1 +1 @@
姓名,"性别",关注"对象",年龄
"sss,sss",姓名,"性别",关注"对象",年龄
Can't render this file because it contains an unexpected character in line 1 and column 23.