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