在工程名上右击–属性–Resoure, 把Text files encoding改为 UTF-8。 2.windows–preferences–General–Content Types–text–Java source file设置编码