I'm working on a small program that includes temperature displays. I want to have it display the degree symbol(°) next to the temperature, and the current code does that properly when I run it inside of my IDE(IntelliJ), but as soon as I try to run it from the command line, it isn't visible.
The print statement is written as follows:
System.out.println("The current temperature is " + currentTemp +"\u00B0");
Again, it displays properly in IntelliJ, but when I try to run it from a default command prompt, it doesn't have the degree symbol.
I'm using Java 14.0.1, Windows 10 version 1909. Let me know if any other information would help