Slackbot
01/09/2024, 12:33 PMVampire
01/09/2024, 12:41 PMJavaCompile task, JavaDoc task, ...
If you don't, then the default is used.
And the default - unless you are on a recent version of Java - is the system default encoding which on Windows often is ISO-8859-1 but can also be something different.
If IntelliJ has UTF-8 configured and you do not delegate compilation to Gradle, it of course uses the right encoding for the compiler.
An alternative is, to not use such characters, but to use Unicode Escapes \u.... for characters not the same in the typical encodings.Fuyang Liu
01/09/2024, 12:44 PM