|
|
Take a look at the Tomcat FAQs:
http://tomcat.apache.org/faq/connectors.html#utf8
-----Original Message-----
From: news [mailto:news@xxxxxxxxxxxxx] On Behalf Of marcopar
Sent: 20 April 2006 14:16
To: tapestry-user@xxxxxxxxxxxxxxxxxx
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="name@TextField" 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: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@xxxxxxxxxxxxxxxxxx
For additional commands, e-mail: tapestry-user-help@xxxxxxxxxxxxxxxxxx
|
|