Eclipse(MyEclipse) 设置默认编码为Utf-8 之最全方法

写程序时往往会有中文字符,而这经常出现乱码,该如何设置呢?

  1. Window->Preferences->General ->Content Type->Text->JSP 最下面设置为UTF-8
  2. Window->Preferences->General->Workspace   面板Text file encoding 选择UTF-8
  3. Window->Preferences->Web->JSP Files 面板选择 ISO 10646/Unicode(UTF-8)
  4. Window->preferences->MyEclipse->Files and Editors ->CSS、HTML、JSP、JavaScript、XML等设置UTF-8
  5. Window->general->Content Types-->Text-->Java Source File-->Default encoding输入框中输入UTF-8,点Update
  6. Properties乱码: Window->Preferences- >General- >ContentTypes- >Text- >Java Properties File,设置下方的Default encoding,把下面的ISO-8859-1改为UTF-8,然后update

你可能感兴趣的:(eclipse,MyEclipse,中文,乱码,utf-8)