java老问题 !!乱码问题...
深圳-IDLER菜鸟(328897842) 21:48:23
// 查询面板
var _store = new Ext.data.JsonStore({
autoLoad: true,
fields: ["permissionId", "permissionName", "permissionUse"],
proxy: {
type: "ajax",
url: "permission.json",
reader: {
type: "json",
root: "permissions"
}
}
});
permission.json:
{'permissions': [
{permissionId:'1001',permissionName:'只能三1',permissionUse:'tianjia1'},
{permissionId:'1002',permissionName:'zhangsan2',permissionUse:'tianjia2'},
{permissionId:'1003',permissionName:'zhangsan3',permissionUse:'tianjia3'}
],'successs':true}
深圳--IDLER (328897842) 21:41:43
帮看看 这个解析的有乱码
------解决方案--------------------
如果是post方法,在后台的方法里加
response.setCharacterEncoding("utf-8");
response.setContentType("application/json;charset=UTF-8");