I am developing a webapp with spring boot with Windows 10 Pro German Edition. As IDE i am using Spring Tool Suite. When i start the application from the console with maven:
mvn clean package -Pproduction && mvn spring-boot:run -Dfile.encoding=UTF8
and i call on the String "Jürgen" string.toCharArray() and show all the characters it will print this:
length: 6
pos: 0, val: J
pos: 1, val: ³
pos: 2, val: r
pos: 3, val: g
pos: 4, val: e
pos: 5, val: n
But when i start the application within the Spring Tool Suite IDE by the Boot Dashboard (right click restart)
It will print this:
length: 6
pos: 0, val: J
pos: 1, val: ü
pos: 2, val: r
pos: 3, val: g
pos: 4, val: e
pos: 5, val: n
I want the behaviour from the STS in the console as well? But how? And why do i have the problem at all? The value is correctly displayed in the GUI. Only the output differs.