在build.xml文件run target下添加下面一行

<sysproperty key="file.encoding" value="UTF-8" />

ant 执行java文件,java文件中含中文,显示乱码

 

相关文章: