I'm running my Java program from command-line (Windows 7). To simplify matters, I describe only the relevant part.
public static void main(String[] args) {
System.out.println("árpád");
}
My output is garbage. It is obviously a character-encoding problem, the Hungarian characters of á and á are not showing up correctly. I've tried the following:
public static void main(String[] args) {
PrintStream ps = new PrintStream(System.out, true, "UTF-8");
ps.println("árpád");
}
But my output is still garbage. How can I resolve this character-encoding issue with Windows 7 command-line? Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…