I've got a little encoding problem somewhere that I can't fix.
I've got the next java file:
public class Main { public static void main(String[] args) { System.out.println("áéíàèì€aei"); } } The file charset encoding is UTF-8 and I'm using Eclipse over Windows to edit and compile it. After having the file compiled I move the .class file to a Debian server, whose charset encoding is also UTF-8, as it's shown here:
root@srv-dev:~# locale LANG=fr_FR.UTF-8 LANGUAGE= LC_CTYPE="fr_FR.UTF-8" LC_NUMERIC="fr_FR.UTF-8" LC_TIME="fr_FR.UTF-8" LC_COLLATE="fr_FR.UTF-8" LC_MONETARY="fr_FR.UTF-8" LC_MESSAGES="fr_FR.UTF-8" LC_PAPER="fr_FR.UTF-8" LC_NAME="fr_FR.UTF-8" LC_ADDRESS="fr_FR.UTF-8" LC_TELEPHONE="fr_FR.UTF-8" LC_MEASUREMENT="fr_FR.UTF-8" LC_IDENTIFICATION="fr_FR.UTF-8" LC_ALL=fr_FR.UTF-8 and when i run the app i'm getting:
root@srv-dev:~# java Main áéÃà èìâ¬aei I'm Eclipse, I've set UTF-8 as project encoding by left-clicking in properties and going to resources/text file encoding / Other : UTF-8.
I can't see what else I would change. There's something I might be missing but I can't find it.