FCKeditor 2.6 的目录 editor 下有一文件 fckeditor.html。
我修改了该文件,其中有些中文字,在 IE 中打开之,发现是乱码,原来这个文件有问题。文件中指定了 charset 为 utf-8:
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
可是文件却是以 ANSI 保存的,改为以 UTF-8 保存,中文不再乱码了。
顺便说一下,调用 fckeditor.html 这个编辑器的示例:
复制代码 代码如下:
<iframe id="fckcontent" src="http://www.jb51.netfckeditor/editor/fckeditor.html?InstanceName=fckcontent&Toolbar=Default" width="780" height="360" frameborder="0" scrolling="no"></iframe>
【FCKeditor 2.6 编码错误导致修改的内容出现乱码的解决方法】相关文章:
★ 浏览器执行history.go(-1) FCKeditor编辑框内显示html源代码的解决方法
★ FCKEditor常用Js代码,获取FCK内容,统计FCK字数,向FCK写入指定代码
★ ie9后浏览器fckeditor无法上传图片、弹出浮层内容不显示的解决方法
★ CuteEditor 编辑器的字体样式无法控制的解决方法
★ jsp fckeditor 上传中文图片乱码问题的解决方法