title: Internationalized string in JTextArea
body: <p>How can I display any non-English characters in JTextArea? I tried different ways, but none works. The following code prints gibberish for any non-English character like Japanese. In debug mode, the variable msgUtf8Str indeed shows the local characters correctly. The supporting character set can be large and a sample includes: Japanese, Chinese (Mandarin), French, German etc.</p>
  
  <pre><code>String msgUtf8Str = null;
  byte[] msgUtf8= message.getBytes(Charset.forName("UTF-8"));
  try
  {
      msgUtf8Str = new String(msgUtf8, "UTF-8");
  }
  catch(Exception ex){}       
  txtMsg.append(msgUtf8Str + "\n");
  </code></pre>