title: Gradle run/build not displaying Chinese properly
body: <p>Chinese output of Gradle Run is displayed as &quot;????????&quot;, while Java Run output is fine.
  <br>
  <br>
  Output of Gradle run</p>
  <pre><code>?????
  \u5f9e\u51b7\u6c23\u8d77\u6548
  ?????
  </code></pre>
  <p>Output of Java run</p>
  <pre><code>從冷氣起效
  \u5f9e\u51b7\u6c23\u8d77\u6548
  從冷氣起效
  </code></pre>
  <p>The Gradle project with Eclipse. Chinese output of Java Run can be displayed after setting &quot;Properties&quot; &gt; &quot;Resource&quot; &gt; &quot;Text file encoding&quot; to UTF-8.</p>
  <p>Here is the Java code.</p>
  <pre><code>package testgradle;
  
  import org.apache.commons.text.StringEscapeUtils;
  
  public class Test {
  
      public static void main(String[] args) {
          String origin = &quot;從冷氣起效&quot;;
          String input = &quot;\\u5f9e\\u51b7\\u6c23\\u8d77\\u6548&quot;;
          String result = StringEscapeUtils.unescapeJava(&quot;\\u5f9e\\u51b7\\u6c23\\u8d77\\u6548&quot;);
          System.out.println(origin);
          System.out.println(input);
          System.out.println(result);
      }
  
  }
  </code></pre>
  <p>I have tried to modify build.gradle file, but still the output of Gradle run is not as expected.
  <br>
  <br>
  build.gradle</p>
  <pre><code>plugins {
      id 'java'
      id 'application'
      id 'java-library'
  }
  
  jar {
      manifest {
          attributes 'Main-Class': 'testgradle.Test'
      }
      from {
          configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
      }
  }
  
  application {
      mainClassName = 'testgradle.Test'
  }
  
  tasks.withType(JavaCompile) {
      options.encoding = 'UTF-8'
  }
  
  tasks.withType(Test) {
      systemProperty &quot;file.encoding&quot;, &quot;UTF-8&quot;
  }
  
  javadoc.options.encoding = 'UTF-8'
  compileJava.options.encoding = 'UTF-8'
  
  repositories {
      jcenter()
  }
  
  dependencies {
      api 'org.apache.commons:commons-math3:3.6.1'
      implementation 'com.google.guava:guava:28.2-jre'
      implementation 'org.apache.commons:commons-text:1.9'
      testImplementation 'junit:junit:4.12'
  }
  </code></pre>
  <p>Please provide solution to solve the problem. Thanks!</p>