Window -- Preferences -- General -- Appearance -- Content Types -- Text
选中Java Source File
Default encoding: 填入 UTF-8 点击 Update, OK
Eclipse设置Java文件编码为UTF-8
本文介绍如何在Eclipse IDE中将Java源文件的默认编码设置为UTF-8,通过简单的步骤实现代码的统一编码,避免因字符集不匹配导致的乱码问题。
Window -- Preferences -- General -- Appearance -- Content Types -- Text
选中Java Source File
Default encoding: 填入 UTF-8 点击 Update, OK
3975

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