Open Ali-Assi-AlGooru opened 1 year ago
hello, I am working on application and I need arabic spell checker. do you have any updates about this issue?
Hey, we don't have any plans to fix this (but it might change). In the meantime we would merge a PR with a fix if someone contributes.
I solve that by edit (language_tool_client.dart) file as:
replace this line: json.decode(result.body) as Map<String, dynamic>,
With: json.decode(utf8.decode(result.bodyBytes)) as Map<String, dynamic>,
The Reason Json response do not work with arabic chars (UTF-8) by default.
Hint:
You can use my changes: https://github.com/solid-software/languagetool_textfield/pull/75
I tried the same example in the repository, and it worked well with English. However, when writing Arabic words, the spell checker detected misspelled words, but the suggestions were unreadable.
I am not sure if Arabic is not supported in the package, or if this is a bug. I would appreciate your help with this.
Here's a screenshot showing this case: