Skip to content

Commit e9da610

Browse files
Make LanguageToolTextField understand Arabic sympols
1 parent d8692b5 commit e9da610

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/client/language_tool_client.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ class LanguageToolClient {
3838
);
3939

4040
final languageToolAnswer = LanguageToolRaw.fromJson(
41-
json.decode(result.body) as Map<String, dynamic>,
41+
//json.decode(result.body) as Map<String, dynamic>,
42+
json.decode(utf8.decode(result.bodyBytes)) as Map<String, dynamic>,
4243
);
4344

4445
return _parseRawAnswer(languageToolAnswer);

0 commit comments

Comments
 (0)