Vlad Alexeev
Vlad Alexeev

Reputation: 2214

Android eclipse import project problems with encoding

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

Answers (3)

Ajit Kumar
Ajit Kumar

Reputation: 532

  1. right click on project -> Android Tools -> Fix Project Properties, then menu Project -> Clean... -> Clean all
  2. right click on the project with errors -> Properties -> Android, make sure the Target is selected and is Android 3.0 or higher
  3. check the build errors in the Problems view window and try to resolve them by yourselves

Upvotes: 0

Kai
Kai

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: enter image description here

As to what the correct encoding should be, you'll need to ask the original programmer.

Upvotes: 0

Vikas B L
Vikas B L

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

Related Questions