为什么显示的文字为乱码,求高手帮忙看一下
来源:百度知道 编辑:UC知道 时间:2024/06/14 11:42:51
<%@<%@ page LANGUAGE="c#" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员登陆 </title>
</head>
<body>
<center> <form id="form" runat="server">
<table width="317" border="1">
<tr>
<td colspan=2 ><center>管理员登陆 </center></td>
</tr>
<tr>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理员登陆 </title>
</head>
<body>
<center> <form id="form" runat="server">
<table width="317" border="1">
<tr>
<td colspan=2 ><center>管理员登陆 </center></td>
</tr>
<tr>
charset=gb2312
编码是个能头疼的东西,系统一个,文件一个,检查自己的设置。
看看是不是统一
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
改为
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
或者
把你的ASPX文件另存为 UTF-8 编码