what is the encoding of String that i get using
Preferences.userRoot().get(key, def)
on a windows machine? is it UCS-2? or utf-8? or just some cp125*? and what is it on linux and mac?
EDIT:
i looked at this question What is the character encoding of String in Java?
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?