title: Why can Java display chinese characters although it is using a wrong encoding?
body: <p>I've a bunch of chinese characters in say DB or XML file. They are stored there using <code>UTF-8</code> encoding.
  And now i need to get this information in my Java code. I read the XML using <code>DOM parser</code> and stored the chinese character in a <code>String literal</code>. This is later displayed in the JSP Page and printed in the <code>System out console</code>.
  It is working fine. I do not know why?</p>
  <p>As per my understanding, Java should use the proper encoding (in this case <code>UTF-8</code>) to store the Chinese character. But when I checked the default encoding used by JVM it is not <code>UTF-8 or 16</code>. It is some Cp1522(not sure if this is correct, I cannot recollect the correct value, my apologies).</p>
  <p>So it should not be able to print the values right? Could you please help to know why this is working?</p>