Skip to content
Advertisement

ant: warning: unmappable character for encoding UTF8

I have seen numerous of questions like mine but they don’t answer my question because I’m using ant and I’m not using eclipse. I run this code: ant clean dist and it tells me numerous times that warning: unmappable character for encoding UTF8.

I see on the Java command that there is a -encoding option, but that doesn’t help me cuz I’m using the ant.

I’m on Linux and I’m trying to run the developer version of Sentrick; I haven’t made no modifications to anything, I just downloaded it and followed all their instructions and it ain’t makes no difference. I emailed the developper and they told me it was this problem but I suspect that it is actually something that gotta do with this error at the end:

JavaScript

I’m not sure what I’m gonna do now because I really need for it to work

Advertisement

Answer

Try to change file encoding of your source files and set the Default Java File Encoding to UTF-8 also.

For Ant:

add -Dfile.encoding=UTF8 to your ANT_OPTS environment variable

Setting the Default Java File Encoding to UTF-8:

JavaScript

Or you can start up java with an argument -Dfile.encoding=UTF8

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement