Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

warning: unmappable character for encoding ASCII [duplicate]

Tags:

java

hudson

ant

I encounter this error (warning: unmappable character for encoding ASCII) when compiling the files using apache-ant-1.7.0 through hudson build server can anyone advise on how to resolve this? I am able to build successfully using windows machine.

like image 1000
dfdfd Avatar asked May 25 '10 09:05

dfdfd


1 Answers

It sounds like you're compiling source code that contains non-ASCII characters with your platform default encoding (used by javac) set to US-ASCII.

All you have to do is use the encoding attribute of the javac Ant task to specify the encoding you're using to write your source code.

like image 82
Michael Borgwardt Avatar answered Nov 15 '22 20:11

Michael Borgwardt