How can I export as jar with utf8 encoding? When I export my project to JAR file, the I run jar file on command line it shows quesion marks. How can I fix it?
package utf8JAVA;
import java.io.UnsupportedEncodingException;
public class HelloWorld {
public static void main(String[] args) throws UnsupportedEncodingException {
String s = "ıııııəəəə";
String UTF8Str = new String(s.getBytes(), "UTF-8");
System.out.println(UTF8Str);
}
}