配置myeclipse编码格式三步走:
1、windows->Preferences->general->Workspace,
右侧Text file encoding,选择Other,改变为UTF-8.
2、 windows->Preferences->general->Content Types,右侧Context Types树,点开Text中每一子选项,并在中输入"UTF-8",点击update
3、window——>preference——>MyEclipse——>Files and Editors,将每个子项的"Encoding"改为"ISO 10645/Unicode(UTF-8)",点击Apply