title: System.out character encoding
body: <p>I'm running my Java program from command-line (Windows 7). To simplify matters, I describe only the relevant part.</p>
  
  <pre><code>public static void main(String[] args) {
      System.out.println("Árpád");
  }
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>public static void main(String[] args) {
      PrintStream ps = new PrintStream(System.out, true, "UTF-8");
      ps.println("Árpád");
  }
  </code></pre>
  
  <p>But my output is still garbage. How can I resolve this character-encoding issue with Windows 7  command-line? Thanks</p>