无上战魂txt全集下载:关于fckeditor建立时value的设置

来源:百度文库 编辑:中科新闻网 时间:2024/04/30 06:24:46
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/"
oFCKeditor.Width = "100%"
oFCKeditor.Height = "400"
oFCKeditor.Value = "请输入内容"
oFCKeditor.Create "FCKeditor1"
在这段代码里面oFCKeditor.Value如果设置为英文的内容则显示正常,如果设置为中文的内容则无法显示。问题还不是出在这里,问题是出在如果是从数据库中读取一个条目(中文的)然后将其赋值给fckeditor的话,就可以正常显示了,如
Set rs=Server.CreateObject("Adodb.RecordSet")
sql = "select * from PPst_News where BigClassID = 1 order by AddTime desc"
rs.open sql,conn,1,3
response.Write("aa="&rs("content"))
Dim oFCKeditor
Set oFCKeditor = New FCKeditor
oFCKeditor.BasePath = "/"
oFCKeditor.Width = "100%"
oFCKeditor.Height = "400"
oFCKeditor.Value = rs("title")
oFCKeditor.Create "FCKeditor1"
为什么呢?


工行分行电饭锅