Open mitryp opened 1 year ago
The fix for this problem is a one-liner, but the issue is located in the language_tool
code :[
You can read this:
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.
Some characters are not decoded correctly in the mistake suggestions. The reason is that the
language_tool
package utilizes the defaultResponse.body
getter, which decodes the response in a wrong encoding, while the data is received in theUTF8
encoding.The screenshot of the incorrect behavior:
The screenshot of the expected behavior:
The issue makes the usage of the plugin with Cyrillic languages completely impossible, though the API supports them.