I saved my java source file specifying it's encoding type as UTF-8 (using notepad, by default notepad's encoding type is ANSI) then I tried to compile it using
javac -encoding "UTF-8" One.java
but it gave a error message
One.java:1: illegal character: \65279
?public class One {
^ 1 error
is there any other way, i can compile this java source
here is the source:
public class One {
public static void main(String[] args) {
System.out.println("HI");
}}