System.getProperty with foreign language
Hello All,
I've developed a program that uses System.getProperty("user.home"). However, when I change the regional settings to a foreign language, I get a different (and wrong) path. Instead of the usual c:\documents and settings\administrator, when I switched the language to Turkish, I got C:\DOCUMENTS AND SETTİNGS\ADMİNİSTRATOR. Obviously, no such path exists, and so my program gets stuck (same thing happens in other foreign languages.
How can I make the System.getProperty return the "normal" path ?
Thanks in advance,
Barak