Where to get "UTF-8" string literal in Java?
<p>I'm trying to use a constant instead of a string literal in this piece of code:</p>

<pre><code>new InputStreamReader(new FileInputStream(file), "UTF-8")
</code></pre>

<p><code>"UTF-8"</code> appears in the code rather often, and would be much better to refer to some <code>static final</code> variable instead. Do you know where I can find such a variable in JDK?</p>
