错误:用于编码windows-1251的不可映射字符(0x98)

问题描述 投票:0回答:1

我对项目的组装有问题:

D:... \ Main.java:112:错误:用于编码windows-1251的不可映射字符(0x98) 。robot.getBrowserControl()findElement(By.xpath( “// DIV [= 'НАПИСАТЬ'。]”))点击();

这个错误符合:robot.getBrowserControl().findElement(By.xpath("//div[.='НАПИСАТЬ']")).click();

图片:errorIDEA settings。右下角选择UTF-8。我不确定,但也许它就像符号“И”

img errors

这是我的gradle文件

plugins {
    id 'java'
}

group 'ru.grbi3yh.processthesefiles'
version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
    mavenCentral()
}

jar {
    baseName = 'ProcessthFiles'
}


apply plugin: 'application'

dependencies {
    testCompile group: 'junit', name: 'junit', version: '4.12'
    compile group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '2.41.0'
    compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.7'
}
java gradle intellij-idea encoding windows-1251
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.