为了保证在开发web时编码的统一,避免乱码情况的复杂情况,大家开发web应用时,都这样设置一下吧。
1. 设置MyEclipse工程的workspace编码方式
Windows->Preferencd->General->workspaceText file encode先择utf-8
2. 设置MyEclipse的各种常用文件的编码方式:
Windows->Preferencd->MyEclipse Enterprise Workbench->Files and Editors
HTML utf-8
javascript utf-8
JSP utf-8
XML utf-8
3. 设置MyEclipse的jre运行环境
Windows->Preferencd->Java->Installed JERs
add -> 选择jdk目录