I am trying to input the letters ÆØÅ
in a program I am currently writing.
I am using the java.util.Scanner
to do this, however, it does not want to accept these characters mentioned above.
Scanner in = new Scanner(System.in); <br>
String input = in.nextLine(); //Inputting testÆØÅ
Code runs as if nothing is broken, however, when debugging, a diamond square appears with a question mark inside it, for every "foreign" letter. Furthermore using VS code.
Also, when adding the scanner to my watchlist and seeing its properties, there is a field named Digits which has this value: "0123456789abcdefghijklmnopqrstuvwxyz"
.
How do I fix this, making my scanner accept ÆØÅ
?