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(@RequestParameter("content") String content)
    {
        System.out.println(content);
        return null;
    }

Now the problem is, the Chinese character I received in the event handler turns into garbage characters. Both my page and tomcat are set to use UTF-8. The Chinese in normal form inputs and even the autocomplete mixin are correct. I checked the source of autocomplete since the behavior of my component is somewhat like that. but I didn't find any additional process on char encoding. Did I miss anything and what's the best place to re-decoding/encoding the characters?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to