Re: [CSV] Invalid char between encapsulated token and delimiter

"Christopher Dodunski (Apache Tomcat)" <[email protected]> Sat, 04 Jan 2025 20:57:58 +1300
Newsgroups gmane.comp.jakarta.commons.user
Message-ID <[email protected]>
Hi,

Viewing the CSV using 'less' it appears that the BOM is at the beginning 
of the file, as normal, not midway.  I'm unsure, therefore, why the 
error message points to line 6 of the CSV.

Thanks for directing me to org.apache.commons.io.input.BOMInputStream.  
It looks like the constructors for this class have since been 
deprecated, so my current line of code:

     Reader in = new FileReader(crewList);

May wind up something like:

     InputStream inputStream = new FileInputStream(crewList);
     BOMInputStream bomInputStream = 
BOMInputStream.builder().setInputStream(inputStream).get();
     Reader in = new InputStreamReader(bomInputStream);

Kind regards,

Chris.