The javac command takes an optional -encoding argument.
Joined: Oct 12, 2005
I saved my .java file (called JsBuild.java) in UTF8, then typed
javac -encoding UTF8 JsBuild.java
but then I got an error message in Japanese, which, translated to English, is something like this:
JsBuild.java:1: \65279 is an improper character.
The first line of the file is an import statement, with no character in front of the word "import".
I assume that the question mark is there because the character \65279 cannot be displayed correctly.
But I have no idea how that character got there, or how to get rid of it.