Andrew - could you please explain what you mean by "checkout in git as UTF8".
I can't remember which project I saw this in, but it mentioned needing to use UTF8. So, similar to what Andrew has shown below, I suspect. If all files on host are tagged ISO8859-1 then, and even if a project has build.sourceEnconding UTF8, will that be fine as long as there aren't any "special" chars? I tried following this for getting Maven to work on zOS, but it doesn't work - https://github.com/HeinekenBilly/Maven-zOS mvn -v shows gibberish. If I don't set "MAVEN_OPTS=-Dfile.encoding=UTF-8", without messing with iconv, then it works with IBM-1047, zOS-native. - KB ------- Original Message ------- On Thursday, July 13th, 2023 at 4:50 AM, Andrew Rowley <and...@blackhillsoftware.com> wrote: > On 13/07/2023 9:02 am, David Crayford wrote: > > > I'd like to understand your reasons for wanting to encode your Java source > > files in UTF-8. It's important to note that the default encoding on z/OS is > > IBM-1047 (EBCDIC). We typically use ISO8859-1 and have to specify the > > "-encoding iso8859-1" option when using the javac compiler. As mentioned > > earlier, tagging files as UTF-8 can lead to unexpected issues, which is why > > it's not commonly done. > > > I commonly see > <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> > > specified for Java projects. > > I have wondered how this works if you try to compile on z/OS. The > obvious but possibly wrong answer would be to checkout in git as UTF8 > and tag the files. > > If you encode as ISO8859-1, what happens to e.g. literals with > characters not in ISO8859-1? An obvious one would be the Euro character, > but I'm sure there are more. > > -- > Andrew Rowley > Black Hill Software > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN