dan-s1 commented on code in PR #7952: URL: https://github.com/apache/nifi/pull/7952#discussion_r1414338830
########## nifi-nar-bundles/nifi-standard-services/nifi-record-serialization-services-bundle/nifi-record-serialization-services/src/main/java/org/apache/nifi/csv/AbstractCSVRecordReader.java: ########## @@ -74,6 +88,14 @@ abstract public class AbstractCSVRecordReader implements RecordReader { this.timestampFormat = timestampFormat; LAZY_TIMESTAMP_FORMAT = () -> DataTypeUtils.getDateFormat(timestampFormat); } + + final InputStream bomInputStream = BOMInputStream.builder().setInputStream(in).get(); + inputStreamReader = new InputStreamReader(bomInputStream, encoding); Review Comment: ```suggestion this.inputStreamReader = new InputStreamReader(bomInputStream, encoding); ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org