title: Java japanese characters string size in bytes
body: <p>I'm trying to calculate the length of the String of japanese characters
   '漢字仮名交じり文' :</p>
  
  <pre><code>    String testStr = "漢字仮名交じり文";
      try {
          System.out.println("Length : " + testStr.getBytes("UTF-16").length);
      }
          catch(Exception ex) {
          ..... 
      }
  </code></pre>
  
  <p>There are 8 characters in the string and this excerpt prints : 18. Why is it 18?</p>