fckeditor字符编码问题
当我从数据库检索数据时,我在 codeigniter 框架内使用 fckeditor,它显示无法识别的字符而不是特殊字符(法语字符,如 é è ç ..)? 在数据库中,数据被转换为html实体,我可以在首页上毫无问题地显示它,但在后端我的编辑器有问题! 谢谢
am using fckeditor inside codeigniter framework when i retrive data from data base it show an unreconized characters instead of special characters (french charachters like é è ç ..) ?
in data base data is converted to html entities, and i can show it without problem on the front pages, but in the backend i have a probleme with the editor!!
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您使用 htmlentities,则在将其打印到文本区域之前使用
html_entity_decode($string);
。更多信息: http://www.php.net/manual/ en/function.html-entity-decode.php
If you're using htmlentities then use
html_entity_decode($string);
before you print it on the textarea.More info: http://www.php.net/manual/en/function.html-entity-decode.php
我建议使用tinymce编辑器,因为它是轻量级的,并且与fckeditor相比提供了更多的选项。
http://tinymce.moxiecode.com/
I suggest using tinymce editor because it is lightweight and provides much more options as compared to fckeditor.
http://tinymce.moxiecode.com/