You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hagrawal7 edited this page May 31, 2015
·
2 revisions
CustomResourceBundleControl is tool-kit class which enables to read the properties file in the specified encoding scheme.
By default ISO 8859-1 character encoding is used for reading content of properties file, so if the file contains any character beyond ISO 8859-1 then it will not be processed properly. In that case, this Java class be used along with ResourceBundle class, as below:
//If want to use UTF-8 character encoding scheme
ResourceBundle bundle = ResourceBundle.getBundle("MyResources", new CustomResourceBundleControl("UTF-8"));
//If want to use some other character encoding scheme
ResourceBundle bundle = ResourceBundle.getBundle("MyResources", new CustomResourceBundleControl(<<>>));