Go to Window -> Preferences -> General -> Content Types
Click on Text
on "Default encoding :" enter encoding type. for utf8 enter "UTF-8" and then click Update button.