无法正常显示中文字符。环境:JSD 1。4 + tomcat 4.1.30 + mysql 4.1.2a.
我试了这些:
1. declare the jsp page meta data as utf-8:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2. declaring the jsp page property utf-8:
<%@ page language="java" pageEncoding="UTF-8" %>
3. using Servlet filter to enforce UTF-8 request and response encoding
4. declare JDBC drive connection as UTF-8:
jdbc:mysql://localhost:3306/roller?user=roller&password=roller&autoReconnect=true&useUnicode=true&characterEncoding=utf-8
5. setup mysql encoding in my.ini:
[mysqld]
default-character-set=utf8
这些应该解决问题, 但还是不成功, 请问问题在哪里
Thanks for your comments
我试了这些:
1. declare the jsp page meta data as utf-8:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2. declaring the jsp page property utf-8:
<%@ page language="java" pageEncoding="UTF-8" %>
3. using Servlet filter to enforce UTF-8 request and response encoding
4. declare JDBC drive connection as UTF-8:
jdbc:mysql://localhost:3306/roller?user=roller&password=roller&autoReconnect=true&useUnicode=true&characterEncoding=utf-8
5. setup mysql encoding in my.ini:
[mysqld]
default-character-set=utf8
这些应该解决问题, 但还是不成功, 请问问题在哪里
Thanks for your comments