Take a look at the Tomcat FAQs:

http://tomcat.apache.org/faq/connectors.html#utf8

-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of marcopar
Sent: 20 April 2006 14:16
To: tapestry-user@jakarta.apache.org
Subject: problems with (sic) character encoding

Hello, i've read some of the past discussions and tried to apply the 
solutions described there without success so i'm here.

Tapestry 4.0
Tomcat 5.5.9
JVM 1.5.0_06

Tomcat starts with:
-Dfile.encoding=UTF-8

in my .application file i have:
<meta key="org.apache.tapestry.messages-encoding" value="UTF-8"/>
<meta key="org.apache.tapestry.output-encoding" value="UTF-8"/>
<meta key="org.apache.tapestry.template-encoding" value="UTF-8"/>

I do not use .properties files.

I have a form with an input field:
<input jwcid="[EMAIL PROTECTED]" value="ognl:glueSyringe.name"/>

i put in the field the string:
"the name è ì"

i submit the form and what i get when tapestry calls the object setter
is:
"the name è ì"

so it seems that the UTF-8 encoded stream coming from the browser is 
treated as an ISO8859-1 or something.

In the page i'm using the @Shell component and it generates the meta:
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
that is correctly recognized by the browser.

Hard coded "èèè" in the page are correctly displayed.

Thanks for any help.
ciao


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to