Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encode error #258

Closed
yaojl2006 opened this issue Nov 14, 2017 · 5 comments
Closed

encode error #258

yaojl2006 opened this issue Nov 14, 2017 · 5 comments
Assignees
Labels
bug From Hemiptera and especially its suborder Heteroptera

Comments

@yaojl2006
Copy link

encode error when install :

^D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:267: 错 误: 编码GBK的不可映射字符
//dedication = dedication.replace("@bullet", " 鈥? ");
^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:277: 错 误: 编码GBK的不可映射字符
//title = title.replace("@bullet", " 鈥? ");
^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:288: 错 误: 编码GBK的不可映射字符
//english_title = english_title.replace("@bullet", " 鈥? ");
^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:298: 错 误: 编码GBK的不可映射字符
//abstract_ = abstract_.replace("@bullet", " 鈥? ");
^
40 个错误
:grobid-core:compileJava FAILED

@lfoppiano
Copy link
Collaborator

Hi @yaojl2006,
this seems to be a problem with the new gradle build and windows.

Could you please provide us more details on the error? Which command you ran and the complete log?

Regards
Luca

@lfoppiano lfoppiano self-assigned this Nov 14, 2017
@yaojl2006
Copy link
Author

yaojl2006 commented Nov 14, 2017

@lfoppiano
I just use the command as follow:
./gradlew clean install

log as follow:

:clean UP-TO-DATE
:grobid-core:clean
:grobid-home:clean UP-TO-DATE
:grobid-service:clean UP-TO-DATE
:grobid-trainer:clean UP-TO-DATE
:grobid-core:compileJava
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\analyzers\GrobidDefaultAnalyzer.java:62: 错误: 编码GBK的不可映射字符
    //" \n\r\t([,:;?.!/)-鈥撯垝\"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\analyzers\GrobidDefaultAnalyzer.java:62: 错误: 编码GBK的不可映射字符
    //" \n\r\t([,:;?.!/)-鈥撯垝\"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                  ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\analyzers\GrobidDefaultAnalyzer.java:62: 错误: 编码GBK的不可映射字符
    //" \n\r\t([,:;?.!/)-鈥撯垝\"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\analyzers\GrobidDefaultAnalyzer.java:62: 错误: 编码GBK的不可映射字符
    //" \n\r\t([,:;?.!/)-鈥撯垝\"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                     ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\data\BiblioItem.java:1473: 错误: 编码GBK的不可映射字符
        //res = res.replace("@BULLET", " 鈥? ");
                                          ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\data\BiblioItem.java:1528: 错误: 编码GBK的不可映射字符
        if (res.startsWith(":") || res.startsWith("鈥?") || res.startsWith("-")) {
                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\data\BiblioItem.java:1569: 错误: 编码GBK的不可映射字符
                List<String> separators = Arrays.asList(";","鈥?", "脕", "\n", ",");
                                                              ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\document\Document.java:1266: 错误: 编码GBK的不可映射字符
                        localText = localText.replace("@BULLET", " 鈥? ");
                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:186: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Jj]an$|[Jj]anuary$|[Jj]anvier$|[Jj]annewaori$|[Jj]anuar$|[Ee]nero$|[Jj]anuaro$|[Jj]anuari$|[Jj]aneiro$|[Gg]ennaio$|[Gg]en$|[Oo]cak$|[Jj]a$|(^1$)|(^01$)|(1鏈?))");
                                                                                                                                                                                          ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:188: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Ff]eb$|[Ff]ebruary$|[Ff][e茅]vrier$|[Ff]ebruar$|[Ff]ebrewaori$|[Ff]ebrero$|[Ff]evereiro$|[Ff]ebbraio$|[Ll]uty$|[Ss]tycze艅$|艦$|ubat$|[Ff]e$|^2$|^02$|2鏈?)");
                                                                                                                                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:190: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Mm]ar$|[Mm]arch$|[Mm]ars$|[Mm]eert$|[Mm]盲rz$|[Mm]arzo$|[Mm]ar莽o$|[Mm]art$|[Mm]a$|[Mm]a$|^3$|^03$|3鏈?)");
                                                                                                                                  ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:192: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Aa]pr$|[Aa]br$|[Aa]vr$|[Aa]pril$|[Aa]vril$|[Aa]pril$|[Aa]prile$|[Aa]bril$|[Nn]isan$|[Aa]p$|^4$|^04$|4鏈?)");
                                                                                                                                     ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:194: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Mm]ay$|[Mm]ai$|[Mm]ay$|[Mm]ay谋s$|[Mm]ei$|[Mm]aio$|[Mm]aggio$|[Mm]eie$|[Mm]a$|^5$|^05$|5鏈?)");
                                                                                                                       ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:196: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Jj]un$|[Jj]une$|[Jj]uin$|[Jj]uni$|[Jj]unho$|[Gg]iugno$|[Hh]aziran$|^6$|^06$|6鏈?)");
                                                                                                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:198: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Jj]ul$|[Jj]uly$|[Jj]uillet$|[Jj]uli$|[Tt]emmuz$|[Ll]uglio$|[Jj]ulho$|^7$|^07$|7鏈?)");
                                                                                                               ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:200: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Aa]ug$|[Aa]ugust$|[Aa]o[u没]t$|[Aa]ugust$|[Aa]gosto$|[Aa]ugustus$|[Aa]臒ustos$|^8$|^08$|8鏈?)");
                                                                                                                       ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:202: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Ss]ep$|[Ss]ept$|[Ss]eptember$|[Ss]eptembre$|[Ss]eptember$|[Ss]ettembre$|[Ss]etembro$|[Ee]yl眉l$|^9$|^09$|9鏈?)");
                                                                                                                                         ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:204: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Oo]ct$|[Oo]cto$|[Oo]ctober$|[Oo]ctobre$|[Ee]kim$|[Oo]ktober$|[Oo]ttobre$|[Oo]utubro$|^10$|10鏈?)");
                                                                                                                            ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:206: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Nn]ov$|[Nn]ovember$|[Nn]ovembre$|[Kk]as谋m$|[Nn]oviembre$|[Dd]icembre$|[Nn]ovembro$|^11$|11鏈?)");
                                                                                                                          ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\DateParser.java:208: 错误: 编码GBK的不可映射字符
            Pattern.compile("([Dd]ec$|[Dd]ecember$|[Dd][e茅]cembre$|[Dd]iciembre$|[Aa]ral谋k$|^12$|12鏈?)");
                                                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\engines\Engine.java:1235: 错误: 编码GBK的不可映射字符
        abstr = abstr.replace("@BULLET", " 鈥? ");
                                            ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\LayoutTokensUtil.java:118: 错误: 编码GBK的不可映射字符
            tok = "鈥?";
                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\matching\ReferenceMarkerMatcher.java:41: 错误: 编码GBK的不可映射字符
    public static final Pattern DASH_PATTERN = Pattern.compile("[鈥?-]");
                                                                  ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 编码GBK的不可映射字符
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                 ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 编码GBK的不可映射字符
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 编码GBK的不可映射字符
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                  ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 编码GBK的不可映射字符
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 编码GBK的不可映射字符
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                      ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 编码GBK的不可映射字符
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                       ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 编码GBK的不可映射字符
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                       ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 编码GBK的不可映射字符
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 编码GBK的不可映射字符
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                      ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 编码GBK的不可映射字符
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                           ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 编码GBK的不可映射字符
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 编码GBK的不可映射字符
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                               ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 编码GBK的不可映射字符
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 编码GBK的不可映射字符
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                     ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 编码GBK的不可映射字符
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                          ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 编码GBK的不可映射字符
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                            ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 编码GBK的不可映射字符
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                              ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 编码GBK的不可映射字符
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                               ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:343: 错误: 编码GBK的不可映射字符
                case '\u00C0': // 脙鈧?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:345: 错误: 编码GBK的不可映射字符
                case '\u00C2': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:347: 错误: 编码GBK的不可映射字符
                case '\u00C5': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:350: 错误: 编码GBK的不可映射字符
                case '\u00C4': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:351: 错误: 编码GBK的不可映射字符
                case '\u00C6': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:354: 错误: 编码GBK的不可映射字符
                case '\u00C7': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:358: 错误: 编码GBK的不可映射字符
                case '\u00C9': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:360: 错误: 编码GBK的不可映射字符
                case '\u00CB': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:372: 错误: 编码GBK的不可映射字符
                case '\u00D1': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:375: 错误: 编码GBK的不可映射字符
                case '\u00D2': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:376: 错误: 编码GBK的不可映射字符
                case '\u00D3': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:377: 错误: 编码GBK的不可映射字符
                case '\u00D4': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:378: 错误: 编码GBK的不可映射字符
                case '\u00D5': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:382: 错误: 编码GBK的不可映射字符
                case '\u00D6': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:383: 错误: 编码GBK的不可映射字符
                case '\u0152': // 脜鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:389: 错误: 编码GBK的不可映射字符
                case '\u00D9': // 脙鈩?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:391: 错误: 编码GBK的不可映射字符
                case '\u00DB': // 脙鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:441: 错误: 编码GBK的不可映射字符
                case '\u0153': // 脜鈥?
                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:640: 错误: 编码GBK的不可映射字符
        //string = string.replace("@BULLET", "鈥?");
                                               ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:879: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:883: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:887: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:891: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:895: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:899: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:903: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:907: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:911: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:915: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:919: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:923: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:927: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:931: 错误: 编码GBK的不可映射字符
                    res += "鈥?";
                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 需要';'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法字符: '\ufffd'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                  ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法字符: '\ufffd'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法字符: '\ufffd'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                      ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法字符: '\ufffd'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                       ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 未结束的字符文字
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                        ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 需要<标识符>
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                           ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法的类型开始
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                            ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法字符: '\u2666'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                  ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法字符: '\u2665'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                        ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法字符: '\u2663'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                              ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法字符: '\u2660'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 非法字符: '\u00a0'
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                                          ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:30: 错误: 未结束的字符串文字
    public static final String punctuations = " 鈥?*,:;?.!)-鈭掆?揬"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                                           ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 需要';'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                         ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法字符: '\ufffd'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                           ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法字符: '\ufffd'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法字符: '\ufffd'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                               ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法字符: '\ufffd'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 未结束的字符文字
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                 ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 需要<标识符>
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法的类型开始
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                     ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法字符: '\u2666'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                           ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法字符: '\u2665'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                                 ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法字符: '\u2663'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                                       ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法字符: '\u2660'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                                             ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 非法字符: '\u00a0'
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                                                   ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:31: 错误: 未结束的字符串文字
    public static final String fullPunctuations = "([ 鈥?*,:;?.!/)-鈭掆?撯?怽"鈥溾?濃?樷??'`$]*\u2666\u2665\u2663\u2660\u00A0";
                                                                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 需要';'
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                        ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 非法字符: '\ufffd'
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                          ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 非法字符: '\ufffd'
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                            ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 非法字符: '\ufffd'
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                              ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 非法字符: '\ufffd'
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                               ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 未结束的字符文字
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                                ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 非法的类型开始
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                                  ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 非法字符: '\u2666'
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                                        ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 非法字符: '\u2665'
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                                              ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 非法字符: '\u2663'
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                                                    ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 非法字符: '\u2660'
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                                                          ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\TextUtilities.java:32: 错误: 未结束的字符串文字
    public static final String restrictedPunctuations = ",:;?.!/-鈥撀烩?瀄"鈥溾?濃?樷??'`*\u2666\u2665\u2663\u2660";
                                                                                                           ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\UnicodeUtil.java:155: 错误: 编码GBK的不可映射字符
        text = text.replaceAll(bullet_chars, "鈥?");
                                               ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:225: 错误: 编码GBK的不可映射字符
                        //note = note.replace("@BULLET", " 鈥? ");
                                                            ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:246: 错误: 编码GBK的不可映射字符
                        //submission = submission.replace("@BULLET", " 鈥? ");
                                                                        ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:267: 错误: 编码GBK的不可映射字符
                        //dedication = dedication.replace("@BULLET", " 鈥? ");
                                                                        ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:277: 错误: 编码GBK的不可映射字符
                        //title = title.replace("@BULLET", " 鈥? ");
                                                              ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:288: 错误: 编码GBK的不可映射字符
                        //english_title = english_title.replace("@BULLET", " 鈥? ");
                                                                              ^
D:\spring\workspace-sts-3.8.2.RELEASE\grobid\grobid-core\src\main\java\org\grobid\core\utilities\Utilities.java:298: 错误: 编码GBK的不可映射字符
                        //abstract_ = abstract_.replace("@BULLET", " 鈥? ");
                                                                      ^
40 个错误
:grobid-core:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':grobid-core:compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1.576 secs

@lfoppiano
Copy link
Collaborator

Hi, could you try to add the following lines:

    compileJava.options.encoding = 'UTF-8'

    tasks.withType(JavaCompile) {
        options.encoding = 'UTF-8'
    }

in the gradle.build, in particular at line 33, inside the allproject directive and let me know if this is solving the problem?

Luca

@lfoppiano lfoppiano added the bug From Hemiptera and especially its suborder Heteroptera label Nov 14, 2017
@yaojl2006
Copy link
Author

hi,@lfoppiano
Build successfully after removing the first line compileJava.options.encoding = 'UTF-8'!

Thank you cool guy:)

@lfoppiano
Copy link
Collaborator

hi @yaojl2006 thanks for the testing :-) I'm going to push the change.

Luca

de-code pushed a commit to elifesciences/grobid that referenced this issue Nov 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug From Hemiptera and especially its suborder Heteroptera
Projects
None yet
Development

No branches or pull requests

2 participants