Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
1.0, 1.1
-
None
Description
In CSV-131, you asked for more reports, so here we go
The JavaDoc for public static CSVParser parse(final File file, final Charset charset, final CSVFormat format) seems to be obsolete. It says
<p><strong>Note:</strong> This method internally creates a FileReader using {@link java.io.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)}</p>
... which is clearly no longer the case since the method now takes a charset as a parameter and creates a "FileInputStreamReader" with this charset.