myeclipse导入web项目乱码修改总结

来源:互联网 发布:并行计算结构算法编程 编辑:程序博客网 时间:2024/05/20 16:01
一.将整个project设置编码UTF-8(UTF-8可以最大的支持国际化)
     windows->Preferences->general->Workspace->Text file encoding->Other框中的Text file encoding改为UTF-8。

二.对java源文件编码设置为UTF-8.

     windows->Preferences->general->Context Types->Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update,则设置Java文件编码为UTF-8

1 0
原创粉丝点击