read properties file as utf8


/ Published in: Java
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Properties languageDefaults = new Properties();
  2. URL resource = DefaultValuesAdder.class.getResource( "/default_" + locale + ".properties" );
  3. languageDefaults.load( new InputStreamReader( resource.openStream(), "UTF8" ) );

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.