django-cms / djangocms-text-ckeditor

Text Plugin for django CMS using CKEditor 4
https://www.django-cms.org/en/repositories-plugins/
BSD 3-Clause "New" or "Revised" License
167 stars 185 forks source link

Polish letter 'ó' in source mode #628

Closed Corvette653 closed 2 years ago

Corvette653 commented 2 years ago

Hi, I've found a bug. All polish letters display as they should both in classic and source mode except for ó which changes into ó. That's all, just some small oversight :)

fsbraun commented 2 years ago

What's the difference between ó and ó? I do not know Polish, but to me both look quite similar. Do you have the unicodes of these two letters? If I type ó into ckeditor it is converted to ó. Would that be incorrect for the Polish language?

If your aim is to avoid ckeditor turning ó into ó you can achieve this by adding

CKEDITOR_SETTINGS = {
    "entities_latin": False,
}

to your project's settings.py file.

Corvette653 commented 2 years ago

I'm sorry, github translated html code into actual letter. You're right, that's exactly the same letter and ó is a correct code for ó. And once again you're right - I wanted to avoid translating letter into code, your advice helped.

Now I know the bug is a bit different. In Polish language there are 9 special letters: ą, ć, ę, ł, ń, ó, ś, ź, ż and ó is the only one which is translated into it's code. polish_letters

Once more thank for your help, "entities_latin" is everything I personally needed

fsbraun commented 2 years ago

Great! Pleasure to help!