When you have java source files with iso-8859-1 encoding, you will get "warning: unmappable character for encoding UTF-8". This can be avoided by below options.
1. Add -Dfile.encoding=iso-8859-1 to ANT_OPTS environment variable or providing this as command line parameter as ant -Dfile.encoding=iso-8859-1
2. Javac task has encoding attribute, through which we can specify particular encoding.
1. Add -Dfile.encoding=iso-8859-1 to ANT_OPTS environment variable or providing this as command line parameter as ant -Dfile.encoding=iso-8859-1
2. Javac task has encoding attribute, through which we can specify particular encoding.
<javac srcdir="${src.dir}" destdir="${classes.dir}" encoding="iso-8859-1" />
No comments:
Post a Comment