title: Convert special Characters to Unicode Escape Characters Scala
body: <p>Hello is it possible to convert special Characters like Ä, Ö, Ü, ... to Unicode Escape Characters?<br>
  Like <strong>Ä</strong> would be <strong>\u00C4</strong><br>
  I need this to convert a File for Translation purposes. I have a key value pair of Translations on Server Side e.g.:  </p>
  
  <pre><code>hometown = München  
  </code></pre>
  
  <p>and want to parse it to de.properties to use it in my Javascript App.<br>
  .properties is by definiton ISO/IEC 8859-1 encoded <a href="http://en.wikipedia.org/wiki/.properties" rel="nofollow noreferrer">http://en.wikipedia.org/wiki/.properties</a><br>
  So i have to parse the Key/Value Pair to:  </p>
  
  <pre><code>hometown = M\u00FCnchen  
  </code></pre>
  
  <p>Is it possible to get these Escape Characters with Scala/Java?<br>
  <strong>EDIT:</strong><br>
  <a href="https://stackoverflow.com/questions/2220366/get-unicode-value-of-a-character">Get unicode value of a character</a> doesnt work for me. E.G. for Character <strong>Ä</strong> i get <strong>\u017D</strong> but i need to get <strong>\u00C4</strong><br>
  <strong>EDIT TO MY EDIT:</strong><br>
  Ah ok the problem was that i tried it on the Scala REPL. When i try  </p>
  
  <pre><code>println( "\\u" + Integer.toHexString('Ä' | 0x10000).substring(1) )
  </code></pre>
  
  <p>it prints the correct escape character <strong>\u00C4</strong></p>