Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] CK Editor ...
 
Notifications
Clear all

[SOLVED] CK Editor and accents

5 Posts
2 Users
0 Reactions
4,049 Views
(@bvd)
Posts: 124
Active Member
Topic starter
 
[#5021]

Hi,
I use last version base on mysql and php.

All is fine with charset utf-8 but ck-editor and dojo editor seems to not "understand" the UTF-8 charset.

How do I force editor to put accents in the right way ?

Here is a capture of the result in mysql :
- the first fiel was populated without ckeditor --> result good
- the second field is poupaled with ckeditor ---> bad

Regards,


 
Posted : 14 Mar 2018 14H18
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

Hi,

CK-Editor is an HTML editor, so to preserve compatibility it translates accentuated characters into their html equivalent.
It is not an issue, they will correctly be displayed.


 
Posted : 14 Mar 2018 14H25
(@bvd)
Posts: 124
Active Member
Topic starter
 

Hi,

Thank you for your answer.

I should bette explain the case.

Accents are correctly displayed in the fields when I open an activity.

But they are not correctly displayed when I view a report (activity synthesis) :

Is it a problem with reporting page generation code ?


 
Posted : 14 Mar 2018 15H50
babynus
(@babynus)
Posts: 14953
Main Contributor Admin
 

OK,
This is easily fixed replacing line 237 in report/joblist.php from

echo '' . mb_strtoupper($activity->description, 'UTF-8') . '';

to

echo '' . $activity->description . '';

 
Posted : 14 Mar 2018 17H58
(@bvd)
Posts: 124
Active Member
Topic starter
 

Hi,

Thanks, It works great !

Regards


 
Posted : 16 Mar 2018 20H50
Share:

Scroll to Top