JSP、JAVA、数据库编码总结

JSP、JAVA、数据库编码总结
1、JSP页面编码
<%@ page contentType="text/html;charset=........"%>
<%@ page language="java" pageEncoding="........"%>
pageEncoding:The encoding used for the JSP page file, as well as
the response charset if no charset is specified by contentType.

If this attribute is omitted, but a charset is specified for contentType,
that charset is also used of the page; if contentType doesn't specify a
charset, ISO-8859-1 is used for a regular JSP page, and UTF-8 is used
for a JSP Document.

你可能感兴趣的:(JSP、JAVA、数据库编码总结)