title: Convert escaped Unicode character back to actual character
body: <p>I have the following value in a string variable in Java which has UTF-8 characters encoded like below</p>
  
  <pre><code>Dodd\u2013Frank
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>Dodd–Frank
  </code></pre>
  
  <p>(Assume that I don't have control over how this value is assigned to this string variable)</p>
  
  <p>Now how do I convert (encode) it properly and store it back in a <code>String</code> variable?</p>
  
  <p>I found the following code</p>
  
  <pre><code>Charset.forName("UTF-8").encode(str);
  </code></pre>
  
  <p>But this returns a <code>ByteBuffer</code>, but I want a <code>String</code> back.</p>
  
  <p><strong>Edit</strong>:</p>
  
  <p>Some more additional information.</p>
  
  <p>When I use <code>System.out.println(str);</code> I get </p>
  
  <pre><code>Dodd\u2013Frank
  </code></pre>
  
  <p>I am not sure what is the correct terminology (UTF-8 or unicode). Pardon me for that.</p>