Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-30 Thread Sam Gendler
You have to bear in mind that the jvm uses the default charset when READING a file before tapestry ever gets its hands on it. If you have characters in a file that are incompatible with the default charset, they can get mangled on their way in to the jvm, and no setting of output parameters can p

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-30 Thread Mind Bridge
Strange. There is a unit test that verifies precisely that. Since Tapestry cannot be built without the correct execution of the unit tests, I suspect that the problem is either the naming of the .application file or in the version of Tapestry. What happens when you have "-Dorg.apache.tapestry.te

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-30 Thread Paul Cantrell
I specify the option in WEB-INF/tapestry.application. I see you already wrote that this didn't work for you ... don't know what to tell you! It works for me. I would like to give it a try. Also, where can I find a complete of keys for Tapestry 4? http://jakarta.apache.org/tapestry/UsersGu

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-30 Thread Galam
Hi mb, Thanks for the link to the configuration page. The explanation of the problem was in my original email. I hard coded a few chinese text in my UTF-8 encoded Home.html (see below), but the text didn't get render properly in web browser. The "-Dfile.encoding=UTF-8" option fixed it, but the

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-29 Thread Mind Bridge
Hi Galam, How do you get the data that is not outputted in the correct encoding? I haven't seen an explanation of that in your messages, but I am guessing that it is obtained from a file or from something like a database. As a result the data is not read properly and is "mangled" _before_ it r

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-28 Thread Galam
Specifying the encoding in the *.application file doens't work (I've tried all three encoding options below, none of them work). http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> The only thing that works is by passing the "-Dfile.encoding=UTF-8" option to the java.exe

RE: Can't get Tapestry to work with UTF-8 encoding

2006-05-28 Thread James Carman
in your .application file -Original Message- From: Galam [mailto:[EMAIL PROTECTED] Sent: Sunday, May 28, 2006 10:38 PM To: Tapestry users Subject: Re: Can't get Tapestry to work with UTF-8 encoding Hi Paul, Can you tell me where you specify the following options? I would li

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-28 Thread Galam
Hi Paul, Can you tell me where you specify the following options? I would like to give it a try. Also, where can I find a complete of keys for Tapestry 4? Thanks! Galam. On 5/28/06, Paul Cantrell <[EMAIL PROTECTED]> wrote: This option works for me: This has the advantage tha

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-28 Thread Paul Cantrell
This option works for me: This has the advantage that you don't need control over the startup params of the container's JVM. P On May 27, 2006, at 1:16 AM, Galam wrote: Hi Sam, Thank you so much for the quick response. The jvm option "-Dfile.encoding=UTF-8" works perfectly! Gala

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-26 Thread Galam
Hi Sam, Thank you so much for the quick response. The jvm option "-Dfile.encoding=UTF-8" works perfectly! Galam.

Re: Can't get Tapestry to work with UTF-8 encoding

2006-05-26 Thread Sam Gendler
If you take dojo out of the page entirely, but serve it from the exact same location, does it work correctly? I had some wierd issues with the way java uses the default charset of the jvm when reading a file, so even if tomcat (or any other java app) is set to handle utf-8, things can still get g

Can't get Tapestry to work with UTF-8 encoding

2006-05-26 Thread Galam
Hi all, I couldn't seem to make Tapestry to work with the UTF-8 encoding. I am using Tomcat 5.5.12. As far as I know, the tomcat is setup correctly because it has no problem returning UTF-8 responses for jsp and non-tapestry HTML pages. Here are my Home.page and Home.html. Home.page -