对于写jsp时候,我们需要把静态页面复制过来会出现乱码。
处理的方式有两种:一、先把
<%@page isELIgnored="false" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
页面需要的资源导入,再进行修改后缀。
二、直接修改后缀.html-->.jsp 。
然后,当前.jsp文件上右键propertise,搜Resources,右边的Text file encoding 下选择Other:为UTF-8就乱码处理了。