title: unsupported encoding: UTF-8
body: <p>I have ant script that include a javac blocks for components:</p>
  
  <pre><code>&lt;javac destdir="&lt;component path&gt;\bin"  source="1.7" target="1.7" encoding="UTF-8 " includeantruntime="false"&gt; &lt;!-- includes="**/*.java" --&gt;
      &lt;src path="&lt;component path&gt;\src"/&gt;
  
  
      &lt;classpath refid="classpath.base_componentName" /&gt;
  &lt;/javac&gt;
  </code></pre>
  
  <p>because we have in code some utf-8 languages (such as: Greek, Japanese, Chineee) text there was a need to use encoding="UTF-8" (instead of Cp1252).</p>
  
  <p>When running this script getting this error:</p>
  
  <blockquote>
    <p>error: unsupported encoding: UTF-8</p>
  </blockquote>
  
  <p>I'm running the script with alias build that include the java version that I want to use:</p>
  
  <pre><code>export PATH="/c/Program Files/Apache Software Foundation/apache-ant-1.9.11/bin:/c/Program Files/Java/jre7/bin":$PATH
  
  alias build="ant -f tools/build/ant-scripts/buildComponents.xml -Dproperties.file="buildAllWars.properties""
  </code></pre>
  
  <p>tried to use different java versions (1.7, 1.8) but didn't help!</p>