错误:eclipse中无法编码UTF-8的不可映射字符

时间:2018-06-28 12:44:26

标签: maven selenium character-encoding testng

请在尝试运行maven build时检查以下代码是否设置了maven编译器插件。

  [ERROR] COMPILATION ERROR : 
    [INFO] -------------------------------------------------------------
    [ERROR] \Users\CreditCardClass.java:[168,31] error: unmappable character for encoding UTF-8

带有休闲代码的pom.xml文件

      <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
      </properties>

    <build>
            <plugins>
                <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
            <source>1.6</source>
            <target>1.6</target>
            <encoding>UTF-8</encoding>
        </configuration>
    </plugin>
            </plugins>
        </build>

我已设置UFT-8 IN属性->资源->测试文件UTF-8。请任何人回答

0 个答案:

没有答案