After enabling Jack Options
i can't print a String
with special characters such as the euro sign (€) or Greek letters.I've tried to change encoding to UTF-8
with no luck.Any suggestions?Disabling Jack Options solves the problem, but i need Java 8 support.
String str="€";
byte[] arrByte = new byte[0];
try {
arrByte = str.getBytes("UTF-8");
} catch (UnsupportedEncodingException e) {e.printStackTrace();}
System.out.println(new String(arrByte));
I added the following line, as was suggested here, in gradle.properties and the encoding seems to be fixed now.