Hi all,
I have embedded FCKeditor in a small CMS whose texts are exclusively in German and stored as UTF-8 in a DB. The content of the pages is written using the FCKeditor, but the titles, description and keywords are not.
I want to search through the DB where the texts are stored and here I face the problem that some searchable fields contain , and , and others contain ä and so on. Is there a way to prevent FCKeditor from replacing my non-ASCII characters with HTML entities?
Many thanks in advance,
Nicky
I have embedded FCKeditor in a small CMS whose texts are exclusively in German and stored as UTF-8 in a DB. The content of the pages is written using the FCKeditor, but the titles, description and keywords are not.
I want to search through the DB where the texts are stored and here I face the problem that some searchable fields contain , and , and others contain ä and so on. Is there a way to prevent FCKeditor from replacing my non-ASCII characters with HTML entities?
Many thanks in advance,
Nicky
RE: Avoid HTML Entity generation
Modify the file fckxhtmlentities.js and comment out the characters you don't want escaped.
Do not forget to serve your pages as UTF-8 or else that will be a problem.
RE: Avoid HTML Entity generation
What language are you using to insert the content into the DB? If it is PHP, you could run the content through html_entity_decode() (http://us2.php.net/manual/en/function.h ... decode.php) before inserting it into the DB.
RE: Avoid HTML Entity generation
I had problems with letters not displayed correctly in other form elements, and in text on the same page.
After some browsing of Sourceforge I found this, and tested to use Server.HTMLEncode(), and now its working! Im using VB-Script/ASP.