Hello,
I have a java program with a command line interface. It is used on Linux and Windows. Java code is portable, and I want it to stay portable.
My Java source files are in Unicode - that's good. In them, I have lines like this:
System.err.println("Paramètre manquant. … ");
I am using Eclipse for the package as a JAR archive.
The program then starts with a command like this:
java -jar MyProgram.jar parameters
At the Windows XP command prompt, this gives:
ParamÞtre manquant. …
Is there a portable way to write accent lines in a Java program so that they display correctly on the Windows command line? Or do we just need to live with Windows, stupidly replacing the accented E with an Icelandic spike?
I am using Java 6.
source share