Character Encoding in Java
<p>In eclipse, I changed the default encoding to ISO-8859-1. Then I wrote this:</p>

<pre><code>String str = "Русский язык ";
PrintStream ps = new PrintStream(System.out, true, "UTF-8");
ps.print(str);
</code></pre>

<p>It should print the <code>String</code> correctly, as I am specifying <code>UTF-8</code> encoding. However, it is not printing. </p>
