蚂蚁:警告:编码UTF8不可映射字符 [英] ant: warning: unmappable character for encoding UTF8

查看:328
本文介绍了蚂蚁:警告:编码UTF8不可映射字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过无数的像我这样的问题,但因为我使用蚂蚁和我没有使用eclipse他们没有回答我的问题。我运行这个code:蚂蚁干净DIST ,它告诉我无数次的警告:编码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.

我看到在Java命令有一个-encoding选项,但因为我是用蚂蚁没有帮助我。

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

我在Linux上,我试图运行的 Sentrick 开发者版本;我没有做任何的修改到任何东西,我只是下载了它,并跟着他们所有的<一个href=\"http://sentrick.git.sourceforge.net/git/gitweb.cgi?p=sentrick/sentrick;a=blob;f=doc/readme.txt;h=6ef6ea2789a2f41dbcf542f5f076977f2e519585;hb=HEAD\">instructions并且不没有区别。我通过电子邮件发送的developper,他们告诉我,这是这个问题,但我怀疑这实际上是总得在年底做这个错误的内容:

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:

BUILD FAILED
/home/daniel/sentricksrc/sentrick/build.xml:22: The following error occurred while executing this line:
/home/daniel/sentricksrc/sentrick/ant/common-targets.xml:83: Test de.denkselbst.sentrick.tokeniser.components.DetectedAbbreviationAnnotatorTest failed

我不知道我该怎么做,因为我真的需要为它工作。

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

推荐答案

尝试改变你的源文件的文件编码和默认的Java文件编码设置为UTF-8也。

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

有关蚂蚁:

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

默认的Java文件编码设置为UTF-8:

Setting the Default Java File Encoding to UTF-8:

export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8

或者你也可以带参数启动的java -Dfile.encoding = UTF8

这篇关于蚂蚁:警告:编码UTF8不可映射字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆