乱码问题

整个系统都采用UTF-8编码

tomcat容器需要手动设置
<Connector URIEncoding="utf-8"

JSP加上
<%@ page language="java" pageEncoding="UTF-8"%>

提供附件下载时 需要用到URLEncoder
resp.setHeader("Content-Disposition", "attachment; filename="
+ URLEncoder.encode(downFilename, "UTF-8"));

你可能感兴趣的:(乱码)