原创 Ant replace 含有中文時的亂碼問題

在Ant中對含有中文的文件作替換操作時會出現亂碼的現像: <replace file="${filename}" token="tokenstring" value="valuestring"/> 這主要是由於Ant操作文件時的字符集影