You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Angelo Chen <an...@yahoo.com.hk> on 2010/03/19 07:31:12 UTC

t5: properties files

Hi,

As I understand, Tapestry treats app_?.properties files as UTF-8 encoded and
converts them to ISO-8850-1 with unicode escapes. however, this does not
apply to the properties files accessed by Properties class, any idea how to
do the same thing as what t5 is doing to those app.properties files? Thanks,

Angelo
-- 
View this message in context: http://old.nabble.com/t5%3A-properties-files-tp27950903p27950903.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5: properties files

Posted by Martin Strand <do...@gmail.com>.
Don't know if I understand your question, but if you want to read .properties in UTF-8 format you can do this with JDK 6:

new Properties().load(new InputStreamReader(yourInputStream, Charset.forName("UTF-8")));


On Fri, 19 Mar 2010 07:31:12 +0100, Angelo Chen <an...@yahoo.com.hk> wrote:

>
> Hi,
>
> As I understand, Tapestry treats app_?.properties files as UTF-8 encoded and
> converts them to ISO-8850-1 with unicode escapes. however, this does not
> apply to the properties files accessed by Properties class, any idea how to
> do the same thing as what t5 is doing to those app.properties files? Thanks,
>
> Angelo


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org