I have an application that I'm compiling using maven from the command line. In my pom.xml
I specified encoding using:
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>
And at the time I'm going to run the application I use the following command:
"C:\Program Files\Java\jdk1.8.0_171\bin\java" -Dfile.encoding=UTF-8 -jar myJar.jar
However, when I run the application at the prompt appear strange characters ... type:
ADVERTÊNCIA ou INFORMAÇÕES