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