On Monday, April 22, 2013 11:42:15 AM UTC+2, Jens wrote:
First make sure that your properties file is part of your *.war file to make the file available on the server and then load it using Java's Properties class, e.g.Properties properties = new Properties();properties.load(getClass().getResourceAsStream(fileName)) ;
As properties files are encoded in UTF-8, and Properties defaults to ISO-8859-1, you have to use the load(Reader) method:
properties.load(new InputStreamReader(getClass(),getResourceAsStream(fileName), StandardCharsets.UTF_8)));
Note that GWT.create(MyConstants.class) should be usable on the server-side in GWT 2.6 (not sure it'll make it, could possibly be GWT 2.7)
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment