eclipse:
第一:Window->Preferences->General ->Content Type->Text (这里可以修改其他文件的格式编码,如html,css,javascript,jsp之类的,这些都可以设置编码)->JSP 最下面设置为UTF-8
第二:Window->Preferences->General->Workspace 面板Text file encoding 选择UTF-8
第三:Window->Preferences->Web->JSP Files 面板选择 ISO 10646/Unicode(UTF-8)
myeclipse:
第一:Window->Preferences->General->Workspace 面板下面Text file encoding 将其改为UFT-8。
第二:Window->Preferences->General->Content Types中可以修改具体的不同格式的文件的默认编码,尤其是HTML,CSS,JavaScript等文件的编码最好是修改一下,否则默认的ISO- 8859-1无法支持中文,在面板下面的Default-encoding中输入UTF-8。
第三:windows—->preferences—->myeclipse—->file and editors—–>jsp—>把这个目录下的encoding选为你要设置的编码 UTF-8 。