Skip to content

Instantly share code, notes, and snippets.

@DemkaAge
Last active August 29, 2015 13:56
Show Gist options
  • Save DemkaAge/8999559 to your computer and use it in GitHub Desktop.
Save DemkaAge/8999559 to your computer and use it in GitHub Desktop.
UTF8Control and part of PlatformResourceBundleLocator.class
private ResourceBundle loadBundle(ClassLoader classLoader, Locale locale, String message) {
ResourceBundle rb = null;
try {
rb = ResourceBundle.getBundle(
bundleName,
locale,
classLoader,
new UTF8Control());
}
catch ( MissingResourceException e ) {
log.trace( message );
}
return rb;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment