title: How do I get the decimal value of a unicode character in Java?
body: <p>I need a programmatic way to get the decimal value of each character in a String, so that I can encode them as HTML entities, for example:</p>
  
  <p><strong>UTF-8:</strong></p>
  
  <pre><code>著者名
  </code></pre>
  
  <p><strong>Decimal:</strong></p>
  
  <pre><code>&amp;#33879;&amp;#32773;&amp;#21517;
  </code></pre>