Jump to content

FCKeditor and UTF-8 ?


Guest Mister Paul

Recommended Posts

Guest Mister Paul

Hi,

accentueted characters coming from the FCKeditor panal (no problem elsewhere) are coded like this in a Latin or UTF-8 database : éè&agrav...

I need them to be : éèà

How can I manage that ?

:D

Thank you for your help ! :)

Paul

Link to comment
Share on other sites

Guest Mister Paul

Hi,

accentueted characters coming from the FCKeditor panel are coded like this in a Latin or UTF-8 database : éè&agrav...

I need them to be : éèà

How can I manage that ?

:D

Thank you for your help ! :D

Paul

:wacko:

Please can someone help me… :D

Thank you !

Link to comment
Share on other sites

  • 2 weeks later...
Guest Mister Paul

What I did to turn off fcke.

In fckeditor.php

- I have modified function IsCompatible() to make it always return false ;

- removed the utf8_encode

//$HtmlValue = utf8_encode(htmlspecialchars( $this->Value )) ;

$HtmlValue = htmlspecialchars( $this->Value ) ;

Link to comment
Share on other sites

  • 4 weeks later...
Guest ej-rebirth

Have a look in admin/includes/rte/fckeditor.js, towards the bottom around line 170-180 of the file is an array for changing characters into character codes. Maybe you can add the letters you want and the corresponding HTML code.

I'm not sure if this is right though, just something i've seen in passing to have a look at.

/é/g, <whatever the html code is>

Hope that's pointed you in the right direction.

Link to comment
Share on other sites

  • 3 months later...
Guest Robinski

Actually the solution is very simple. Just edit the file fckconfig.js and set IncludeLatinEntities to false.

FCKConfig.IncludeLatinEntities	= false;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...