jsp头部小知识

*、<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>

表示本页面的页面类型html,所采取的编码格式UTF-8

*、<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

表示服务器向浏览器发送文档时,告诉浏览器要接受一个html格式的文档,编码格式为GB2312

猜你喜欢

转载自lbovinl.iteye.com/blog/2342302
今日推荐