title: How to convert Shift-JIS encoded string to UTF-8?
body: <p>I am getting html source from <a href="http://www.aozora.gr.jp/cards/001095/files/42992_21280.html" rel="nofollow noreferrer">Aozora Bunko</a>. Html file is Shift-JIS encoded. I am trying to get book title and author. Then I want to record title and author into SQLite(UTF-8) database.</p>
  
  <pre><code>    String[] splittedResult = result.split("\"title\"&gt;");
              splittedResult = splittedResult[1].split("&lt;/h1&gt;");
              String title = splittedResult[0];
              byte[] b = null;
              try {
                  b = title.getBytes("Shift_JIS");
              } catch (UnsupportedEncodingException e1) {
                  // TODO Auto-generated catch block
                  e1.printStackTrace();
              }
              String value=null;
              try {
                  value = new String(b, "UTF-8");
              } catch (UnsupportedEncodingException e1) {
                  // TODO Auto-generated catch block
                  e1.printStackTrace();
              }
  
  ...
  myDatabase.addBookInformation(value, author);
  </code></pre>
  
  <p>Result is like this: latin letters are showing normally. But japanese letters are shown by blocks question mark inside (please do not pay attention to null values)</p>
  
  <p><img src="https://i.stack.imgur.com/psaoe.png" alt="enter image description here"></p>
  
  <p>How to solve this problem?</p>