jsp页面我设置为<%@ page contentType="text/html;charset=gbk"%>,我MyEclipse用的是9.0的版本,数据库用的sql2005的,只要添加到数据库的中文全是乱码?
------解决方案--------------------
你用的是struts几 1.X还是2.X ?
如果版本是2.1.6 那有个bug
如果不是 试试在struts.xml里设置这句话
- XML code
<constant name="struts.i18n.encoding" value="GBK"/>