Why is the following displayed different in Linux vs Windows?
System.out.println(new String(\"¿\".getBytes(\"UTF-8\"), \"UTF-8\"));
in Wind
Check what encoding your linux terminal has.
For gnome-terminal in ubuntu - go to the "Terminal" menu and select "Set Character Encoding".
For putty, Configuration -> Window -> Translation -> UTF-8 (and if that doesn't work, see this post).