public static PropertyResourceBundle getBundle ( String baseName , Locale locale ) throws UnsupportedEncodingException , IOException { InputStream is = UTF8PropertyResourceBundle . class . getResourceAsStream ( "/" + baseName + "_" + locale . toString ( ) + PROPERTIES_EXT ) ; if ( is != null ) { return new PropertyResourceBundle ( new InputStreamReader ( is , "UTF-8" ) ) ; } return null ; }
Get a PropertyResourceBundle able to read an UTF - 8 properties file .