Unmappable character for encoding ASCII but my files are in UTF-8
32,672
Setting the Default Java File Encoding to UTF-8:
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
From ant: warning: unmappable character for encoding UTF8
Author by
Jerome Ansia
I am the lead Java Developer for Vidaao I am interested in and using a lot of Google technologies (Google App Engine, Google Cloud Storage, Google Clould SQL, Google Compute Engine, Angular.js and Android)
Updated on July 09, 2022Comments
-
Jerome Ansia over 1 year
I have the following error launching my ant script:
[javac] /****/TextUtils.java:25: error: unmappable character for encoding ASCII
But this file is encoded in UTF-8, if i do the info command:
/***/TextUtils.java: text/plain; charset=utf-8
Why is this file compiled in ASCII and not in utf-8?
I tried to force the encoding in utf-8 on the javac command in my ant build file but without success