[英]Unmappable character for encoding ASCII but my files are in UTF-8
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: 但是如果我执行info命令,则此文件以UTF-8编码:
/***/TextUtils.java: text/plain; charset=utf-8
Why is this file compiled in ASCII and not in utf-8? 为什么这个文件是用ASCII编译而不是用utf-8编译的?
I tried to force the encoding in utf-8 on the javac command in my ant build file but without success 我试图在我的ant构建文件中的javac命令中强制使用utf-8编码,但没有成功
Setting the Default Java File Encoding to UTF-8:
将默认Java文件编码设置为UTF-8:
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
export JAVA_TOOL_OPTIONS = -Dfile.encoding = UTF8
From ant: warning: unmappable character for encoding UTF8 来自ant:warning:用于编码UTF8的不可映射字符
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.