java source code to utf-8 code example
Example 1: javac encoding utf-8
javac -encoding utf8 Test.java
Example 2: encode file to utf-8 in java
String charset = "ISO-8859-1"; // or what corresponds
BufferedReader in = new BufferedReader(
new InputStreamReader (new FileInputStream(file), charset));
String line;
while( (line = in.readLine()) != null) {
....
}