title: Java preference string encoding
body: <p>what is the encoding of String that i get using</p>
  
  <pre><code>Preferences.userRoot().get(key, def)   
  </code></pre>
  
  <p>on a windows machine? is it UCS-2? or utf-8? or just some cp125*? and what is it on linux and mac?</p>
  
  <p><strong>EDIT:</strong><br>
  i looked at this question <a href="https://stackoverflow.com/questions/4453269/what-is-the-character-encoding-of-string-in-java">What is the character encoding of String in Java?</a>
  I know that java stores Strings as UTF-16, but what about Preferences or cmd arguments? when reading strings from there does it use default platform encoding?</p>