tainer,

in this example we will use the SimpleFilter to serve requests for a

specific servlet resource, SimpleFilterServlet. Once you click on the

above link (Set character encoding using a Filter), a html page will

be displayed whose content type is set to UTF-8. Enter some multi

byte data into the form and click Submit. The resulting page displays

the data you have entered. If you want to try with any other

encoding, for example GB2312, modify the line in web.xml UTF-8 to

GB2312. And modify the li