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

Reply via email to