title: Printing out unicode from Java code issue in windows console
body: <p>I have got a problem with printing out a unicode symbol in the windows console. </p>
  
  <p>Here's the java code that prints out the unicode symbol value; </p>
  
  <pre><code>System.out.print("\u22A2 ");
  </code></pre>
  
  <p>The problem doesn't exist when I run the program in Eclipse with encoding settings as UTF-8, however when it comes to windows console the symbol gets replaced by a question mark.</p>
  
  <p>The following was done to try overcome this problem, with no success; </p>
  
  <ul>
  <li><p>Change the font of windows console to Lucida Console.</p></li>
  <li><p>Every time I run windows console I will change the encoding settings, i.e. with the use of <code>chcp 65001</code></p></li>
  </ul>
  
  <p>An extra step I've tried a few times was running the java file with an argument, i.e. <code>java -Dfile.encoding=UTF-8 Filter</code> (where "Filter" is name of the class)</p>