写程序时往往会有中文字符,而这经常出现乱码,该如何设置呢?
- Window->Preferences->General ->Content Type->Text->JSP 最下面设置为UTF-8
- Window->Preferences->General->Workspace 面板Text file encoding 选择UTF-8
- Window->Preferences->Web->JSP Files 面板选择 ISO 10646/Unicode(UTF-8)
- Window->preferences->MyEclipse->Files and Editors ->CSS、HTML、JSP、JavaScript、XML等设置UTF-8
- Window->general->Content Types-->Text-->Java Source File-->Default encoding输入框中输入UTF-8,点Update
- Properties乱码: Window->Preferences- >General- >ContentTypes- >Text- >Java Properties File,设置下方的Default encoding,把下面的ISO-8859-1改为UTF-8,然后update