Sorry, I did not get the answer in this page.Thanks also.
Try it.<%@ page contentType="text/html;charset=GBK"%> in your JSP pages. <connection-url> <![CDATA[ jdbc:mysql://localhost:3306/jbossds? useUnicode=true&characterEncoding=GBK ]]> </connection-url> in the mysql-ds.xml in the jboss
in your JSP pages.
<connection-url>
<![CDATA[
jdbc:mysql://localhost:3306/jbossds? useUnicode=true&characterEncoding=GBK
]]>
</connection-url>
in the mysql-ds.xml in the jboss
操作系统采用的字符集一般不是UTF-8,因此要使用过滤器,将所有的request转换成UTF-8