本地调试网站为什么出现乱码

来源:百度知道 编辑:UC知道 时间:2024/06/14 16:23:00
调用以下代码就出现乱码:
<%@ codepage=936 Language="VBScript"%>
<!-- #INCLUDE file="fckeditor.asp" -->
<%
Public Function bjxinto(bjxcontent,bjxinputname)
Dim sBasePath
sBasePath = Request.ServerVariables("PATH_INFO")
sBasePath = Left( sBasePath, InStrRev( sBasePath, "/_samples" ) )
response.Write sBasePath
%>
<html>
<head>
<title>在线编辑器</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="sample.css" rel="stylesheet" type="text/css" />
</head>
<body>
<%
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = sBasePath
oFCKeditor.Value = bjxcontent
oFCKeditor.Create bjxinputname
%>
</body>
</html>
<%end Function%>
是这样,以上代码其实是一个文件,文件

你是不是放在子目录运行的,根目录的编码和这个不一致

codepage=936
你把这个去掉试试

是不是两个网页编码不同啊你统一下,
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">