title: How to specify encoding of arguments for external program call in java
body: <p>I want to start an external program with an argument which contains German letters, like this:</p>
  <pre><code>ProcessBuilder pb = new ProcessBuilder(&quot;myScript.sh&quot;, &quot;argument_with_letters_äöü&quot;);     
  Process p = pb.start();
      
  </code></pre>
  <p>My JVM (in my case a JBoss AS) is started with encoding ISO 8859-15. The external program 'myScript.sh' however expects UTF-8.</p>
  <p>Is there a way to send my argument encoded as UTF-8? I serched the web, but didn't find an answer.</p>