How to use -encoding option to compile a UTF-8 java source file
I used
javac -encoding UTF-8 javafile.java
to compile the java source file "javafile.java" which is saved by UTF-8. But got errors.
Although when I save the file "javafie.java" as ANSI file, and used
javac javafile.java
I got success.
May I get some helps for compiling the UTF-8 java file?

