title: From a Java program, portable way to write strings with accents
body: <p>Hullo,</p>
  
  <p>I have a Java program, with command line interface. It is used on Linux and Windows. <strong>The Java code is portable, and I want it to remain portable.</strong></p>
  
  <p>My Java source files are in Unicode — which is good. In them, I have lines like this :</p>
  
  <pre><code>System.err.println("Paramètre manquant. … ");
  </code></pre>
  
  <p>I use Eclipse to <strong>package</strong> the program as a JAR archive.</p>
  
  <p>Then, the program is run by a command like this :</p>
  
  <p><code>java -jar MyProgram.jar parameters</code></p>
  
  <p>In the Windows XP command line, this gives :</p>
  
  <p><code>ParamÞtre manquant. … </code></p>
  
  <p><strong>Is there a portable way to write strings with accents in the Java program, so that they appear correctly in the Windows command line ?</strong> Or do we just have to live with Windows stupidly replacing accented E with icelandic thorn ?</p>
  
  <p>I use Java 6.</p>