solid-software/languagetool_textfield

Cyrillic letters are displayed incorrectly

Opened this issue ยท 3 comments

mitryp commented

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 commented

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

You can read this:

Arabic decode

Maybe it is useful for you.

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.