Re: Charset problem of component event handler parameter

2012-05-19 Thread Rural Hunter
ah, I found the cause. it's because of the file encoding setting used in tomcat for working around TAP5-1741(https://issues.apache.org/jira/browse/TAP5-1741). So the parameter is actually decoded correctly but just output in log with malformation. Sorry for the trouble. ?? 2012/5/19 15:01, Ru

Re: Charset problem of component event handler parameter

2012-05-19 Thread Rural Hunter
anyone has any idea? ?? 2012/5/18 22:43, Rural Hunter : Very very strange. I tried to encode Chinese first in javascript then sent to the component event handler. Javascript: new Ajax.Request(spec.url, { method: 'post',

Re: Charset problem of component event handler parameter

2012-05-18 Thread Rural Hunter
Very very strange. I tried to encode Chinese first in javascript then sent to the component event handler. Javascript: new Ajax.Request(spec.url, { method: 'post', parameters: {content: encodeURIComponent('?

Charset problem of component event handler parameter

2012-05-17 Thread Rural Hunter
Hi, I wrote a component which uses ajax request to trigger a component event: new Ajax.Request(spec.url, { method: 'post', parameters: {content: newContent} }); In the event handler: Object onContentChangeDetected(@RequestP