- 论坛徽章:
- 0
|
Are you using tomcat?
If yes, then you still need to configure the following things at Tomcat level:
- Edit file <TOMCAT>/conf/server.xml under tag <Connector> to add URIEncoding="UTF-8" useBodyEncodingForURI="true".
- Edit file <TOMCAT>/bin/catalina.bat for Windows to add set CATALINA_OPTS = "-Dfile.encoding=UTF-8" or <TOMCAT>/bin/catalina.sh for Linux to add export CATALINA_OPTS = "-Dfile.encoding=UTF-8".
Besides, please ensure that your jsp file setting is set to UTF-8.
You may type in some chinese characters to test whether your file setting is set to UTF-8 or not. If you able to type and save it then its should be UTF-8 setting.
This is what I did previously and I managed display the chinese characters via jsp.
Hope this will help to solve your problem. |
|