K
kiran
Hi,
I have a File object with charset set to UTF-8. I am creating a
PropertyResourceBundle using a FileInputStream. The code snippet is
File myFile = new File(myPath);
FileInputStream myStream;
myStream = new FileInputStream(myFile);
PropertyResourceBundle myB = new PropertyResourceBundle(myStream);
The PropertyResourceBundle gets created but the locale on this bundle
is somehow always set to null. Could anyone please explain why it's
being set to null and if there is a way to have the locale set to
Locale.getDefault()
Thanks for the help.
-Kiran
I have a File object with charset set to UTF-8. I am creating a
PropertyResourceBundle using a FileInputStream. The code snippet is
File myFile = new File(myPath);
FileInputStream myStream;
myStream = new FileInputStream(myFile);
PropertyResourceBundle myB = new PropertyResourceBundle(myStream);
The PropertyResourceBundle gets created but the locale on this bundle
is somehow always set to null. Could anyone please explain why it's
being set to null and if there is a way to have the locale set to
Locale.getDefault()
Thanks for the help.
-Kiran