<!--#include file="FCKeditor/fckeditor.asp" -->
<%
Dim sBasePath
sBasePath = "FCKeditor/"
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = sBasePath
oFCKeditor.Config("AutoDetectLanguage") = False
oFCKeditor.Config("DefaultLanguage") = "zh-cn"
oFCKeditor.Value = content
oFCKeditor.Height = "350"
oFCKeditor.Create "Content"
%>
页面编码为gb2312,而fck默认的是utf-8
解决办法:
在页头加入以下代码:
程序代码
<
%
OptionExplicit
response.codepage = 936
response.charset = " gb2312 "
Response.AddHeader " ragma " , " no-cache "
Response.ContentType = " text/html "
Response.Expires =- 1
Response.Buffer = true
% >
OptionExplicit
response.codepage = 936
response.charset = " gb2312 "
Response.AddHeader " ragma " , " no-cache "
Response.ContentType = " text/html "
Response.Expires =- 1
Response.Buffer = true
% >