在struts.xml <struts>中
加入
<constant name="struts.i18n.encoding" value="GBK"></constant>
就可以了
因为struts默认为utf-8编码
本文介绍如何在Struts框架中设置国际化的字符编码。通过在struts.xml文件中配置struts.i18n.encoding参数为GBK,可以改变Struts默认的UTF-8编码。这一配置对于解决特定场景下的字符集问题非常有用。
在struts.xml <struts>中
加入
<constant name="struts.i18n.encoding" value="GBK"></constant>
就可以了
因为struts默认为utf-8编码
6227

被折叠的 条评论
为什么被折叠?