so I have to give some arguments to my Java app which is called from a .bat file. Doing this makes the arguments have the system's charset encoding, which makes some characters displayed wrongly. I tried this
String titulo;
titulo = new String (args[1].getBytes(),"Cp1252");
also tried with a few others from this list http://docs.oracle.com/javase/1.4.2/docs/guide/intl/encoding.doc.html and none of them succeeded. How else can I encode a String from Windows charset to Java's UTF 8? Thanks a lot in advance!
Regards, Rodrigo.
EDIT: The argument I give in the .bat is Martín and the output (which is a JLabel displaying) shows this MartÝn.