开发者

fckeditor characters encoding issue

开发者 https://www.devze.com 2023-01-18 05:06 出处:网络
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 é è ç ..) ?

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 bac开发者_如何学Ckend i have a probleme with the editor!! thanks


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


I suggest using tinymce editor because it is lightweight and provides much more options as compared to fckeditor.

http://tinymce.moxiecode.com/

0

精彩评论

暂无评论...
验证码 换一张
取 消