1.打开window->preferences->workspace
2.修改左下角text file encoding 选择other:UTF-8
3.打开window->preferences->content types
4.选择框中的任意项,比如jsp,修改default enconding:UTF-8