I include the following method in my code to help with lowercase letters, extra spaces etc... But I seem to get the same wrong message. Can you please explain what it mean? I've never seen it before so would really appreciate some help.
Thanks!
"Found characters that are probably not UTF-8 encoded the following places: DogRegister.java:73: "" (Unicode: 2019) This test is not perfect. At the moment, it relies on a "whitelist" with all the characters directly visible on a common Swedish keyboard. If you use other characters, or some accent combinations, the test will fail even if the code is in UTF-8. Also note that some characters are available in several variants that can be difficult to distinguish from each other. If you find that the character / characters above look okay, google the unicode code so you can see what character it really is."
private String readCommand() {
return input.nextLine().trim().toLowerCase();
}
private String readString(String message) {
System.out.print(message);
String input = readCommand();
while (input.isEmpty()) {
System.out.println("Error! the name can’t be empty");
System.out.print(message);
input = readCommand();
}
return input;