languagetool_textfield icon indicating copy to clipboard operation
languagetool_textfield copied to clipboard

Cyrillic letters are displayed incorrectly

Open mitryp opened this issue 2 years ago • 3 comments

Some characters are not decoded correctly in the mistake suggestions. The reason is that the language_tool package utilizes the default Response.body getter, which decodes the response in a wrong encoding, while the data is received in the UTF8 encoding.

The screenshot of the incorrect behavior: image

The screenshot of the expected behavior: image

The issue makes the usage of the plugin with Cyrillic languages completely impossible, though the API supports them.

mitryp avatar May 25 '23 10:05 mitryp

The fix for this problem is a one-liner, but the issue is located in the language_tool code :[

mitryp avatar May 25 '23 12:05 mitryp

You can read this:

Arabic decode

Maybe it is useful for you.

Semsem-programmer avatar Jan 24 '24 06:01 Semsem-programmer

You can read this:

Arabic decode

Maybe it is useful for you.

Thanks, mate!

The original problem in the library this package was using back then was fixed in this PR, in the same way you proposed in the linked issue - great job 🙌 However, this package does not use the API from that lib anymore, so the issue persists here.

mitryp avatar Jan 29 '24 09:01 mitryp