nclude 导入页面时 出现乱码 救命!

来源:百度知道 编辑:UC知道 时间:2024/05/16 05:44:21
index.jsp
<%@ page contentType="text/html;charset=GBK" language="java" import="java.sql.*" %>
<%@ page autoFlush="true"%>
<html>

<%@ include file="top.jsp"%>

<table width="778" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td height="10"></td>
</tr>
</table>
<table width="778" border="0" cellspacing="0" cellpadding="0" align="center" height="148">
<!--DWLayoutTable-->
<tr valign="top">
<td width="180"> <table width="180" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td valign="top">
<%@ include file="d

俺也遇到过
哈 是这样解决的散
加一句这个在最上面HTML开始的地方
<meta http-equiv="Content-Type"content="text/html; charset=gb_2312-80">

因为是没指定CHARSET所以 汉字出现全部乱码现象
在这里分享一下经验

给个旗行不 谢谢楼主了