打开myeclipse的: Window ->Perferences ->General ->Editors ->Context Types 或者: Window ->Perferences ->General ->Context Types 展开右边的Text节点,选中Java Properties File。把下面的Default Character Set的值:ISO-8859-1改成UTF-8
或者你希望的字符编码类型,然后点击update按钮.最后确定.
或者你希望的字符编码类型,然后点击update按钮.最后确定.