solid-software / languagetool_textfield

🌐 Flutter text field that implements LanguageTool spellcheck.
BSD 3-Clause "New" or "Revised" License
34 stars 8 forks source link

Cyrillic letters are displayed incorrectly #31

Open mitryp opened 1 year ago

mitryp commented 1 year ago

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 1 year ago

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

Semsem-programmer commented 8 months ago

You can read this:

Arabic decode

Maybe it is useful for you.

mitryp commented 7 months ago

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.