Return to Snippet

Revision: 53136
at November 14, 2011 23:42 by sabanulutas


Updated Code
Properties languageDefaults = new Properties();
URL resource = DefaultValuesAdder.class.getResource( "/default_" + locale + ".properties" );
languageDefaults.load( new InputStreamReader( resource.openStream(), "UTF8" ) );

Revision: 53135
at November 14, 2011 23:41 by sabanulutas


Initial Code
Properties languageDefaults = new Properties();

                URL resource = DefaultValuesAdder.class.getResource( "/default_" + locale + ".properties" );
                languageDefaults.load( new InputStreamReader( resource.openStream(), "UTF8" ) );

Initial URL

                                

Initial Description

                                

Initial Title
read properties file as utf8

Initial Tags
java

Initial Language
Java