title: How to set an encoding for the JavaDoc in gradle?
body: <p>I have written Java-Classes with JavaDoc-commands that contain special characters like <code>äöü</code>. I generate the JavaDoc using a gradle build-file:</p>
  
  <pre><code>apply plugin: 'java'
  </code></pre>
  
  <p>and the in the commandline: <code>gradle javadoc</code>.</p>
  
  <p>The encoding of the original files is UTF-8. The encoding of the JavaDoc files is also UTF-8. But there is no hint in the HTML-sources, that the files are UTF-8. Thats why my browser always thinks it is <code>ISO-8859</code>.</p>
  
  <p>How can I tell javadoc (via gradle) to also add <code>&lt;meta charset="utf-8"/&gt;</code> to the source codes, when generating the JavaDoc?</p>