Reputation: 2214
I import a project into Eclipse and the person that made it worked on apple computer. So when I import I got project full of strange symbols instead of cyrillic letters
like this :
public static final String months[] = {"ЯНВАРЯ", "ФЕВРАЛЯ", "МАРТА", "АПРЕЛЯ", "МАЯ", "�ЮНЯ", "�ЮЛЯ",...}
how can i make it look like normal?
Upvotes: 0
Views: 215
Reputation: 532
Upvotes: 0
Reputation: 15476
It's because the encoding of the Java source files are wrong.
If you only want to change the encoding of the affected source files, select the file in Package Explorer and open its property window (right click->Properties or Alt-enter), and change the setting highlighted with arrows:
As to what the correct encoding should be, you'll need to ask the original programmer.
Upvotes: 0
Reputation: 397
As far as my knowledge. The .java files read the same irrespective of the OS platform. Open your file in some editor, like wordpad etc.. It should show the same content. The symbols that are shown in your code, might because of the different language he used there which is not supportive in your OS.
Upvotes: 1