I tried to change P4 JAVA API from 2017.2 to 2019.1 but I had a problem because of BOM in utf files.
Since normal p4 command doesn't add BOM('ef bb bf') at the beginning of utf files, we expect same operation in P4 JAVA API.
Actually, we had same issue in 2017.2 and solved this issue with 'FILESYS_UTF8BOM_SHORT_FORM' option like shown below.
IServer p4Server; Properties defaultProps = new Properties(); defaultProps.put(PropertyDefs.FILESYS_UTF8BOM_SHORT_FORM, "0"); p4Server = ServerFactory.getServer(p4ServerUrl, defaultProps);
Unfortunately, it seems not work in 'Perforce Java API 2019.1'.
(It works until 2018.1, I tried)
2019.1 always add BOM('ef bb bf') at the beginning of utf files, please check it.