I am taking a string which is in THAI language. If I use IDE( e.g. eclipse) , I can able to print the string in the console. But if I convert the project into executable jar or tried to run the class from command prompt, it is printing different set of characters.
My code is below :
import java.io.UnsupportedEncodingException;
import java.util.Arrays;
import java.util.Locale;
public class Sample {
public static void main(String[] aaaa){
String str = "อับดุลเลาะ";
System.out.println(str);
}
}
When I execute the above code in eclipse , it displays correct value i.e., อับดุลเลาะ. But if i run the code from command prompt, it displays à??à?±à??à??à??à?¥à??à?¥à?²à?°.
Need help to solve the problem.