By the way the settings in my JSP:

<%@ page contentType="text/html; charset=UTF-8" %>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

Did I miss anything else?

On 6/27/07, Vincent Lin <[EMAIL PROTECTED]> wrote:

Hi

I'm having problem to submit Chinese characters from browser to web
server.

I have the following  settings in struts.properties:

struts.locale=zh_TW
struts.i18n.encoding=UT8

But when I submit Chinese characters to web server.
It gets scrambled characters.
(The wierd thing is that sometimes the server gets correct Chinese
characters.)

I've tried to use an interceptor to do req.setCharacterEncoding("UTF-8").
It doesn't work.

I've tried to use Servlet Filter to do req.setCharacterEncoding("UTF-8")
too.
(It's the way we solve Chinese problem in struts 1 environment).
It still doesn't work.

Does anyone know how to solve this problem?

Thanks a lot!

Reply via email to