title: Convert UTF-8 to Shift-JIS
body: <p>I have written the simple conversion code to convert to Japanese character from UTF-8.</p>
  
  <pre><code>    private static String convertUTF8ToShiftJ(String uft8Strg) {
          String shftJStrg = null;
          try {
  
              byte[] b = uft8Strg.getBytes(UTF_8);
              shftJStrg = new String(b, Charset.forName("SHIFT-JIS"));
              logger.info("Converted to the string :" + shftJStrg);
          } catch (Exception e) {
              e.printStackTrace();
              return uft8Strg;
          }
          return shftJStrg;
      }
  </code></pre>
  
  <p>But it gives the output error,</p>
  
  <pre><code>convertUTF8ToShiftJ START !!
  uft8Strg=*** abc000.sh é��å§�ã��ï¼�startedï¼�
  *** abc000.sh å®�è¡�ä¸­ï¼�executing...ï¼�
  *** abc000.sh çµ�äº�ã��ï¼�endedã��ï¼�*
  </code></pre>
  
  <p>Do anybody have any idea that where I made a mistake or need some additional logic, it would be really helpful!</p>