title: Change default charset to UTF-8
body: <p>I have a project in java with the maven builder. Now I need to support the UTF-8 charset. I don't know why the default charset (<code>Charset.defaultCharset()</code>) is always <code>US-ASCII.</code>
  I changed the Pom.xml configuration to UTF-8 (for encoding) and set <code>-Dfile.encoding=UTF-8</code>
  but the output is always "<code>?</code>" for Unicode's chars (eg. <code>"Việt Nam"</code> => <code>Vi?t Nam</code>) .</p>
  
  <p>I had checked it on Ant buidler, it's correct as UTF-8's characters.</p>
  
  <p>This is my Pom.xml</p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.3.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;source&gt;1.7&lt;/source&gt;
                  &lt;target&gt;1.7&lt;/target&gt;
                  &lt;outputEncoding&gt;UTF-8&lt;/outputEncoding&gt;
                  &lt;argLine&gt;-Dfile.encoding=UTF-8&lt;/argLine&gt;
                  &lt;encoding&gt;${project.build.sourceEncoding}&lt;/encoding&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  
          &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.2.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;cucumber&lt;/id&gt;
                      &lt;phase&gt;test&lt;/phase&gt;
                      &lt;configuration&gt;
                          &lt;executable&gt;src/scripts/cucumber.sh&lt;/executable&gt;
                          &lt;commandlineArgs&gt;${host} ${port} ${profile}&lt;/commandlineArgs&gt;
                      &lt;/configuration&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;exec&lt;/goal&gt;
                      &lt;/goals&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;properties&gt;
      &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
      &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
  &lt;/properties&gt;
  </code></pre>
  
  <p>Thank you</p>
  
  <p><strong>Update</strong>
  My system is</p>
  
  <p>NetBeans 7.3.1
  JDK 1.7
  Mac OS 10.9.1</p>
  
  <p><strong>Update</strong>
  I have change the IDE to Intelij IDEA, and the problem is gone, but I don't know why.</p>