In a java program I'm trying to display the degree symbol (small circle) in the command prompt using println(), but it's not displaying properly. Here is the statement:

Code:

System.out.println( "\u00b0" );

Thanks for any suggestions.

10-15-2012, 12:19 PM

Tolls

Re: \u escape character not working

Where are you trying to display it?
That works (for example) when run in my Eclipse IDE, but will not work if I ran it from the command line. It all depends on what the character set of the displaying tool is.