FckEditor 转换 nbsp;一些奇怪的角色?
我已将一些文本粘贴到 fckeditor 中,空格变为  
没关系,但是当我打开相同的内容时,相同的  
变成一些奇怪的字符(例如反转问号�
)。我尝试将 FCKConfig.FillEmptyBlocks 更改为 false 和 true,但这仍然没有帮助。我使用fckeditor版本2.6.3,我在codeigniter php中使用这个编辑器。
I have pasted some text to fckeditor and the spaces become  
thats ok, but when I open the same content the same  
becomes some strange character (like a revers question mark �
). I have tried to change FCKConfig.FillEmptyBlocks to false and true but this still did not help. I use fckeditor version 2.6.3, I use this editor in codeigniter php.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
关闭 global_xss_filtering
就我而言,我通过设置$config['global_xss_filtering'] = FALSE
;并在需要它的字段上设置 xss_clean。
或
更改您的字符集编码。查看 FckEditor 使用的是什么。
我还发现了这个:
1.- 在 xhtml 文件中:
2.- 在 MySQL 数据库中: DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
3.- FCKeditor 需要更改配置文件:fckconfig.js 第 65 行中,以下指令中 true 为 false:
FCKConfig.IncludeLatinEntities = false ; /* 这种方式对于西班牙语来说效果很好 */
请参阅此链接: http://ckeditor.com/forums/Support/FCK-UTF-8-encoding-FCKeditor-not-working-special-charac
如果您打开了它,也许可以解决您的问题。
In my case, I turn off global_xss_filtering by setting
$config['global_xss_filtering'] = FALSE;
and Setting xss_clean on fields that require it.
or
Change your character set encoding. See what FckEditor is using.
I also found this:
1.- in xhtml files:
2.- in MySQL database: DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci;
3.- FCKeditor requires a change in the configuration file: fckconfig.js in line 65 true for false in the following instruction:
FCKConfig.IncludeLatinEntities = false ; /* This way worked fine for Spanish */
See this link: http://ckeditor.com/forums/Support/FCK-UTF-8-encoding-FCKeditor-not-working-special-charac
Maybe that could fix your problem if you have that turned on.