getparameter java,Java处理request.getParameter中的特殊字符

I am trying to get parameter in my java class that contain a special character. I have added it as follows

pageEncoding="UTF-8"%>

I have these two parameters:

(1)3 –days System Admin (6EE SP1) training at VMware Bangalore location

(2)Daiichi:eDossier – Phase1 new_6500004691

After submitting the page i get the perfect result,but two parameter names gets change as below:

(1)Daiichi:eDossier ââ¬â Phase1 new_6500004691

(1)3 âdays System Admin (6EE SP1) training at VMware Bangalore

Please suggest

解决方案

Try setting request.setCharacterEncoding("UTF-8") before the first call to getParameter().

If that doesn't work, have a look at your Tomcat config.