When reading a file or getting the bytes of a String value, there is inconsistent use of getBytes() and getBytes(Charset). As a result this means that the JVMs default Charset is used for the getBytes() case which is not consistent between all JVMs (<Java 18). To put this explicitly on Windows Charset=cp1252 (English) while on macOS and *nix Charset=UTF-8.
When reading a file or getting the bytes of a String value, there is inconsistent use of
getBytes()andgetBytes(Charset). As a result this means that the JVMs defaultCharsetis used for thegetBytes()case which is not consistent between all JVMs (<Java 18). To put this explicitly on WindowsCharset=cp1252(English) while on macOS and *nixCharset=UTF-8.