方法一:new String(model.getMsgTitle().getBytes("ISO-8859-1"),"utf-8");将获取到的msgTtitle的值的字符改为"utf-8"形式;
public void queryNotice() throws Exception{
Notice nm = new Notice();
nm.setMsgTitle(new String(model.getMsgTitle().getBytes("ISO-8859-1"),"utf-8"));
`````
}
后者待续
时间: 2024-10-28 14:21:41