在build.xml文件run target下添加下面一行 <sysproperty key="file.encoding" value="UTF-8" /> 转载于:https://www.cnblogs.com/chenchen-tester/p/7462793.html