diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java index ae4fff8e..c98f05d6 100644 --- a/src/main/java/org/apache/commons/csv/CSVParser.java +++ b/src/main/java/org/apache/commons/csv/CSVParser.java @@ -135,6 +135,11 @@ public final class CSVParser implements Iterable, Closeable { /** * Creates a parser for the given {@link File}. * + *

Note: This method internally creates a FileReader using + * {@link FileReader#FileReader(java.io.File)} which in turn relies on the default encoding of the JVM that + * is executing the code. If this is insufficient create a URL to the file and use + * {@link #parse(URL, Charset, CSVFormat)}

+ * * @param file * a CSV file. Must not be null. * @param format