I'm tyring to print a String with Arabic characters:
private static void print(String msg, Object... args) {
try {
PrintStream ps = new PrintStream(System.out, true, "ISO-8859-6");
ps.println(String.format(msg, args));
} catch (UnsupportedEncodingException error) {
System.err.println(error);
System.exit(0);
}
}
However, I see from the Eclipse log console that the Arabic characters as displayed as series of these kind of characters è??êòé
What could be missing in my code?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…