ssh2框架在处理中文乱码的时候比较简单,只要在struts.xml中配置就可以了:
<constant name="struts.i18n.encoding" value="gbk"></constant>或者是在struts.properties加上struts.i18n.encoding=GBK 在web.xml中配置那么多,挺繁杂的,好像也没有起到作用(我配置的时候)!
本文介绍如何通过简单配置解决SSH2框架中的中文乱码问题。只需在struts.xml或struts.properties文件中设置struts.i18n.encoding属性为GBK即可。
ssh2框架在处理中文乱码的时候比较简单,只要在struts.xml中配置就可以了:
<constant name="struts.i18n.encoding" value="gbk"></constant>或者是在struts.properties加上struts.i18n.encoding=GBK 在web.xml中配置那么多,挺繁杂的,好像也没有起到作用(我配置的时候)!
1万+

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