使用struts2.2.3的dojo datetimepicker控件时在九月份之后出现乱码,
原因就是struts2-dojo-plugin-2.2.3.jar包下的dojo_zh.js或者dojo_zh-cn.js文件中的中文出现了乱码。
解决方法:将jar包中org\apache\struts2\static\dojo\nls 文件下的
dojo_zh.js或者dojo_zh-cn.js的乱码修正;
在使用的jsp页面的sx:head标签加上locale=”zh” parseContent=”true”项
1 <sx:head debug="true"
2 locale="zh"
3 parseContent="true"
4 extraLocales="en-us,zh-cn,de-de"
5 />
2 locale="zh"
3 parseContent="true"
4 extraLocales="en-us,zh-cn,de-de"
5 />