RTF changes foreign letters and does not change it back.

1 Answer 28 Views
Editor
Justina
Top achievements
Rank 1
Justina asked on 07 Feb 2025, 01:32 PM | edited on 07 Feb 2025, 01:38 PM

Hi Telerik,

To start, I will say this, yes I am using the danish language pack.

I am using the rich text editor and encountering issues with how it treats foreign language letters. I am based in Denmark, so when we have danish texts that include letters such as æ, ø, å, kendo seem to be translating them into a it's own letter combo.

This is a problem, because it is being saved like this in the database as well as, when I get the response, it does not translate it back to danish letters it stays as a weird letter dump.

Also consider that the data that is saved in the DB is later used in other places, therefore even if kendo would change it back for viewing, the fact that, this is how it is saved in the DB is a huge problem.

I attached some pictures for reference.

Thanks in advance,
Juste

1 Answer, 1 is accepted

Sort by
0
Accepted
Ivaylo
Telerik team
answered on 12 Feb 2025, 12:29 PM

Hello Justina,

Thank you for the details provided.

By default, the Kendo UI Editor includes a Serialization configuration with the Entities setting enabled, which causes characters outside the ASCII range to be encoded as HTML entities. In your case, you could set this configuration to false to prevent the special symbols from being encoded. Below is an example of how this can be implemented:

.Serialization(f => f.Entities(false))

Furthermore, I prepared a sample application where the suggested modifications could be tested. To verify the changes, you may set a breakpoint in the Index action within the HomeController, specifically where the POST request is handled. Upon submitting the form, inspect the model property to determine whether the special symbols have been encoded.

I hope this information was helpful.

Kind Regards,
Ivaylo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
Editor
Asked by
Justina
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or