警告:编码 UTF8 的不可映射字符
- <compilerarg line="-encoding GBK "/>,改好后的<javac>如下:

- <javac srcdir="${src.home}" destdir="${build.class}" debug="yes"> <compilerarg line="-encoding GBK "/> <classpath refid="compile.classpath"> </classpath></javac>
再Build就正常了.
You can determine the current character encoding settings by means of the System class:
String currentEncoding = System.getProperty("file.encoding");
Or by means of the Charset class: Charset.defaultCharset()
You could change the default encoding used by your application by means of setting this variable when you lauch the application, for instance:
> java -Dfile.encoding=UTF-8
> java -Dfile.encoding=ASCII
> java -Dfile.encoding=UTF-16
> java -Dfile.encoding=Cp1252
> java -Dfile.encoding=Cp500