<%@page contentType="text/html;charset=gbk"%> 与 <meta http-equiv="Content-Type" content="text/html; charset=GBK">区别

    前一个是在服务端起作用,是告诉应用服务器采用何种编码输出JSP文件流,

    后一个是在客户端起作用,是告诉浏览器是采用何种编码方式显示HTML页面

posted @ 2018-09-30 15:46  MagicAsa  阅读(265)  评论(0编辑  收藏  举报