Charset cannot be null

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1603965 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2014-06-19 17:25:32 +00:00
parent fcaa26799a
commit f4cc9a928f
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ public class CSVParserTest {
@Ignore("CSV-107") @Ignore("CSV-107")
public void testBOM() throws IOException { public void testBOM() throws IOException {
final URL url = ClassLoader.getSystemClassLoader().getResource("CSVFileParser/bom.csv"); final URL url = ClassLoader.getSystemClassLoader().getResource("CSVFileParser/bom.csv");
final CSVParser parser = CSVParser.parse(url, null, CSVFormat.EXCEL.withHeader()); final CSVParser parser = CSVParser.parse(url, Charset.forName("UTF-8"), CSVFormat.EXCEL.withHeader());
try { try {
for (final CSVRecord record : parser) { for (final CSVRecord record : parser) {
final String string = record.get("Date"); final String string = record.get("Date");