I am unable to process special characters such as (–, ', £ etc) in a java file when i try executing them on windows command prompt.
Example:
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Mangifera indica – the common mango");
}
}
Expected Output: Mangifera indica – the common mango
Ouput Recieved: Mangifera indica ΓÇô the common mango
I believe it is some sort of unicode problem, and i very much want to run it on the command prompt, is there a way it could be sorted?