jsp: charset=gb2312
数据库也是gb2312
运行时抛出异常:
java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBD\xEF\xBF\xBD...' for column 'NAME' at row 1
解决办法:
struts.xml添加配置:<constant name="struts.i18n.encoding" value="gb2312"></constant>
数据库也是gb2312
运行时抛出异常:
java.sql.SQLException: Incorrect string value: '\xEF\xBF\xBD\xEF\xBF\xBD...' for column 'NAME' at row 1
解决办法:
struts.xml添加配置:<constant name="struts.i18n.encoding" value="gb2312"></constant>