tapestry-user@jakarta.apache.org
[Top] [All Lists]

problems with (sic) character encoding

Subject: problems with (sic) character encoding
From: marcopar
Date: Thu, 20 Apr 2006 15:16:00 +0200
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

<Prev in Thread] Current Thread [Next in Thread>