As a remark, I'd like to mention, that removing upload component from form
resolved the decoding issues. But I still have the question: is it somehow
possible to have a form with upload components and working UTF-8 decoding?

Lauri



Nick Westgate wrote:
> 
> Look at the Tapestry console output for exception logging.
> The changes you have made are not necessary.
> 
> Cheers,
> Nick.
> 
> 
> Ken wrote:
>> Hi,
>> 
>> I copied 'buildUtf8Filter' method from the URL below
>> (in citation) and add:
>> 
>>    configuration.add("Utf8Filter", utf8Filter);
>> 
>> in my AppModule.
>> Then I got:
>> 
>>    HTTP ERROR: 500
>>    Internal Server Error
>>    RequestURI=/sample/
>>    Powered by Jetty://
>> 
>> What am I wrong?
>> 
>> 
>> I have some concern.
>> 
>> 1. in Tapestry5Utf8Encoding, it uses:
>> 
>>    requestGlobals.getHTTPServletRequest()
>> 
>>    but there is no method 'getHTTPServletRequest' for
>>    class RequestGlobals. So I rewrite it to 'getRequest'.
>> 
>> 2. likewise, method 'setCharacterEncoding' does not in
>>    HttpServletResponse, so I rewrite it to 'setEncoding'.
>> 
>> 
>> thanks.
>> Ken
>> 
>> Nick Westgate wrote:
>>> If you are using file upload there may be an incompatibility.
>>> Otherwise, are you sure you added this line to 
>>> contributeRequestHandler()?
>>>     configuration.add("Utf8Filter", utf8Filter); // handle UTF-8
>>>
>>> Cheers,
>>> Nick.
>>>
>>>
>>> Lauri Benno wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm totally lost on this. I'm using UTF-8 on my application and output
>>>> is working fine. I followed instructions on
>>>> http://wiki.apache.org/tapestry/Tapestry5Utf8Encoding and added UTF-8
>>>> filter to AppModule but I'm still receiving gibberish in my page class
>>>> when I try to submit a form that has characters  outside the English
>>>> alphabet (like ö,ä,ü) in it. As I'm using Jetty I did even set
>>>> org.mortbay.util.URI.charset=UTF-8 but still no help.
>>>> What am I missing here?
>>>>
>>>> Below is my dev environment:
>>>> Tapestry 5.0.6-SNAPSHOT
>>>> Java 6 u3
>>>> Maven Jetty plugin (Jetty 6.1.6rc0)
>>>> OS: openSuse 10.3
>>>>
>>>>
>>>> Lauri
>> 
>> 
>> ---------------------------------------------------------------------
>> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-t5--decoding-utf-8-in-form-submissions-tf4666126.html#a13380686
Sent from the Tapestry - User mailing list archive at Nabble.com.


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

Reply via email to