myEclipse中注释乱码问题解决:
(1) 对整个project设置编码 UTF-8
windows->Preferences->general->Workspace->Text file encoding->Other框中的Text file encoding改为UTF-8。
(2) 对java源文件编码设置为utf-8
windows->Preferences->general->Context Types->Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update,则设置Java文件编码为UTF-8。
当然,如果设置utf依然乱码,那么把utf-8改为 GBK 再试试;
(1) 对整个project设置编码 UTF-8
windows->Preferences->general->Workspace->Text file encoding->Other框中的Text file encoding改为UTF-8。
(2) 对java源文件编码设置为utf-8
windows->Preferences->general->Context Types->Text,选择Java Source File,在下面的Default encoding输入框中输入UTF-8,点Update,则设置Java文件编码为UTF-8。
当然,如果设置utf依然乱码,那么把utf-8改为 GBK 再试试;
本文介绍了解决myEclipse中注释出现乱码的方法,包括将整个项目的编码设置为UTF-8,以及将Java源文件的编码设置为UTF-8的具体步骤。
1324

被折叠的 条评论
为什么被折叠?



