JSP页面字符集设置

错误提示:

HTTP Status 500 - /test1.jsp (line: 2, column: 1) Page directive must not have multiple occurrences of pageencoding

原因分析: 

这个意思是我给JSP设置了多种字符集合。

源码:

1 <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
2 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

修改方案:

把pageEncoding="UTF-8"随便哪一个删掉就好

转载于:https://www.cnblogs.com/basilguo/p/jsp_1.html

你可能感兴趣的:(JSP页面字符集设置)