1. 项目名右键,【Properties】->【Resource】Other选择UTF-8
2. jsp页面头
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
3. 在页面<head>标签里再加上
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
1. 项目名右键,【Properties】->【Resource】Other选择UTF-8
2. jsp页面头
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
3. 在页面<head>标签里再加上
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">