Java properties files are a mess. They still require Windows encoding (ISO-8859-1), which is incompatible with UTF-8.
Look at the documentation [0] or at the OpenJDK code. Both assume ISO-8859-1, unless you're dealing with a special case where resource bundles are involved.
[0]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base...