Code example for PropertyResourceBundle

0
		} 
 
		if (stream != null) {
			try { 
				// Only this line is changed to make it to read properties files as UTF-8. 
				result = new PropertyResourceBundle(new InputStreamReader(stream, "UTF-8"));
			} finally { 
				stream.close();
			} 
		} else { 
			result = null;
		} 
 
		return result;
	} 
} 
Contextual code suggestions in your IDE  Get Codota for Java