title: How to draw a unicode character in java?
body: <p>Short of copying the character to the clipboard and pasting it inside my string, is there a way to draw a greek letter (or for that matter, any unicode character)? I know the code for the character I am trying to draw is <code>U+03F4</code> according to <a href="http://unicode-table.com/en/#03F4" rel="nofollow noreferrer">here</a>. I have tried the following:</p>
  
  <pre><code>g.drawString("U+03F4", 100, 100); // works as a string literal as it should
  g.drawString("\U+03F4", 100, 100); // error: Illegal escape character
  g.drawString("\\U+03F4", 100, 100); // thought I could trick it. Just draws "\U+03F4"
  </code></pre>
  
  <p>I saw in <a href="https://stackoverflow.com/questions/7652244/java-string-tochararray-with-unicode-characters">this</a> question that the 'u' was lowercase but that didn't make any difference.</p>
  
  <p>Why would this not be working?</p>