title: Convert String with encoding UTF-8 to TIS620 (Thai encoding) in Java.What are the ways to do it and it there any data loss?
body: <p>As an input the string will be any Thai char string with UTF-8 encoding,
  Covert this string format from <strong>UTF-8</strong> to <strong>TIS620</strong> in Java.</p>
  
  <ol>
  <li>Can that be achieved by java.io.Charset?</li>
  <li>Is there any data loss or increase in char size post encoding?</li>
  <li>Any java utility/open source available for any encoding conversion?</li>
  </ol>
  
  <p>I'm new to character encoding and checked few online help links but could not find any with reference to TIS620</p>
  
  <p>Input is input string to be converted e.g. </p>
  
  <blockquote>
    <p>๕ค 9 ๖ต 0 ๗จ - ๘ข = ๙ช q ๐ๆ w \"ไ e ฎำ r ฑพ t ธะ y ํั u ๊ี i ณร o ฯน p ญย [ ฐบ ] ,ล ⏎ ⇥ a ฤฟ s ฆห d ฏก f โด g ฌเ h ็้ j ๋่ k ษา l ศส ; ซ</p>
  </blockquote>
  
  <p>encoding - tis 620</p>
  
  <pre><code>public static String encode(String input, String encoding) {
      //   byte[] bytes = input.getBytes();
      return new String(input.getBytes(), Charset.forName(encoding));
  }
  </code></pre>
  
  <p>Expected output is the given UTF-8 string will be converted to TIS 620 encoding</p>