eclipse原文件编码GBK-UTF8

菜单Window-Preferences-General-Workspace,在右侧面板的Text file encoding选项中选择Other:UTF-8

上一步如果不起作用,可以尝试设置下:

Window-Preferences-General-Content Types,在右侧面板的Text中,选择相应的C Source File或者Java Source File在下方的Default encoding:输入UTF-8

原文地址:https://www.cnblogs.com/coolbear/p/3344001.html