You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by bigcache1 <sh...@gmail.com> on 2012/03/16 18:02:40 UTC

Re: [OT] Re: T5: encoding issues

BUMP!!

I've recently updated my app to the Tapestry 5.3
Everything works great, thanks to all developers.
Just have a little problem with encoding of russian symbols in tml files.
Instead of russian or just wrong "chinese" symbols, I get this ????? ???
????? ?. 

This is only in case when russian letters are in .tml file.
When they are returned values, or from .properties files - everything is ok.
File encodings:
.tml - utf-8
.properties ISO-8859-1
.java - utf-8
mysql tables - utf-8

Server configuration:
Ubuntu 11.10 ru and en locales (utf8) installed. I see russian in .tml on
the terminal.
Glassfish 3.1.1

--
View this message in context: http://tapestry.1045711.n5.nabble.com/T5-encoding-issues-tp2427143p5571931.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: [OT] Re: T5: encoding issues

Posted by bigcache1 <sh...@gmail.com>.
Thanks a lot, man! That helped.

I did:
glassfish@Ubuntu-1110-oneiric-64-minimal:~$ bin/asadmin --secure
create-jvm-options -- -Dfile.encoding=utf-8
and stop-domain, start-domain.
I just thought that previous comment was referring to some system jvm
option. 

--
View this message in context: http://tapestry.1045711.n5.nabble.com/T5-encoding-issues-tp2427143p5571995.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: [OT] Re: T5: encoding issues

Posted by Lenny Primak <lp...@hope.nyc.ny.us>.
No. You need to add this into JVM options tab in glassfish and make sure it's on the command line when you do a ps. 



On Mar 16, 2012, at 1:15 PM, bigcache1 <sh...@gmail.com> wrote:

> I added this option to maven.
> mvn install -Dfile.encoding=utf-8
> Am I right?
> 
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/T5-encoding-issues-tp2427143p5571968.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
> 

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


Re: [OT] Re: T5: encoding issues

Posted by bigcache1 <sh...@gmail.com>.
I added this option to maven.
mvn install -Dfile.encoding=utf-8
Am I right?

--
View this message in context: http://tapestry.1045711.n5.nabble.com/T5-encoding-issues-tp2427143p5571968.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: [OT] Re: T5: encoding issues

Posted by Josh Canfield <jo...@gmail.com>.
Did you try adding -Dfile.encoding=utf-8 to the jvm command line?


On Fri, Mar 16, 2012 at 10:02 AM, bigcache1 <sh...@gmail.com> wrote:
> BUMP!!
>
> I've recently updated my app to the Tapestry 5.3
> Everything works great, thanks to all developers.
> Just have a little problem with encoding of russian symbols in tml files.
> Instead of russian or just wrong "chinese" symbols, I get this ????? ???
> ????? ?.
>
> This is only in case when russian letters are in .tml file.
> When they are returned values, or from .properties files - everything is ok.
> File encodings:
> .tml - utf-8
> .properties ISO-8859-1
> .java - utf-8
> mysql tables - utf-8
>
> Server configuration:
> Ubuntu 11.10 ru and en locales (utf8) installed. I see russian in .tml on
> the terminal.
> Glassfish 3.1.1
>
> --
> View this message in context: http://tapestry.1045711.n5.nabble.com/T5-encoding-issues-tp2427143p5571931.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
>

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


Re: [OT] Re: T5: encoding issues

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Fri, 16 Mar 2012 14:02:40 -0300, bigcache1 <sh...@gmail.com>  
wrote:

> This is only in case when russian letters are in .tml file.
> When they are returned values, or from .properties files - everything is  
> ok.
> File encodings:
> .tml - utf-8
> .properties ISO-8859-1

Not ok. For Tapestry, .properties files should be UTF-8.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

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