Posted By

sabanulutas on 11/14/11


Tagged

java utf8 properties-file


Versions (?)

read properties file as utf8


 / Published in: Java
 

  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  

You need to login to post a comment.