这个是我在index。jsp中的几句话,我把配置文件改成GB2312的了,想输入几句自己的论坛描述;logger.trace就是简单的用System.out.println打印一下;在后台都能正确的打印出我自己的描述语句了,但是在页面上就变成乱码了,真是百思不得其解。
<%Logger.trace("from page"+JiveGlobals.getJiveProperty("skin.default.communityDescription"));%>
<%= JiveGlobals.getJiveProperty("skin.default.communityDescription") %>
xml文件:
<?xml version="1.0" encoding="GB2312"?>
<!--
....
.....
...
<communityDescription>大家好,欢迎来到我的论坛!</communityDescription>
另外,我把JiveGlobals get出来的字符串用newString(tmp。getbyte(),gb2312)转一下的方法也试过了,还是不行