fileName = new String(fileName.getBytes(), "UTF-8")
} catch (UnsupportedEncodingException e1) {
// TODO Auto-generated catch block
e1.printStackTrace()
}
uploadPage 接受参数加个 HttpServletRequest 方法最上面写一下。if (request.getCharacterEncoding() == null) {
request.setCharacterEncoding("UTF-8")//你的编码格式
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)