导入节点xml 出现中文乱码问题,在后台控制台打印能正常显示.导出的代码是这样的.
public ActionForward imp(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws NumberFormatException, Exception {
String xml = request.getParameter("xml");
String parentNodeId = request.getParameter("parentNodeId");
this.nodeService.addNodeByXml(new Long(parentNodeId),xml);
return mapping.findForward("SUCCESS");
return null;
}
public ActionForward imp(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response) throws NumberFormatException, Exception {
String xml = request.getParameter("xml");
String parentNodeId = request.getParameter("parentNodeId");
this.nodeService.addNodeByXml(new Long(parentNodeId),xml);
return mapping.findForward("SUCCESS");
return null;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货