ant 执行java文件,java文件中含中文,显示乱码 在build.xml文件run target下添加下面一行 <sysproperty key="file.encoding" value="UTF-8" />