The Java Eclipse Console dont show the correct French characteres

113 Views Asked by At

I’m using Eclipse IDE 2022-09 (4.25.0) and when I print a French text like Périneau, the console return P�rineau.

example:

String str = "Périneau";
System.out.println(str);

console:

P�rineau

Is there something that I can do to have a good output?

1

There are 1 best solutions below

0
Reilas On BEST ANSWER

You'll need to switch to "UTF-8".

Common Tab (Help - Eclipse Platform).

Encoding

Sets the encoding for the console allocated for this launch. If Default is selected the launch will inherit the current Text file encoding setting from the Workspace preference page. Or a different encoding can be selected for this launch.