Skip to content

Commit

Permalink
Correctly decode emoji data as UTF-8
Browse files Browse the repository at this point in the history
  • Loading branch information
abitofevrything committed Sep 11, 2023
1 parent 5906fb1 commit 9b8ee8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/emoji.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ Future<List<EmojiDefinition>> getEmojiDefinitions() async {
return _cachedEmojiDefinitions!;
} else {
final response = await http.get(_emojiDefinitionsUrl);
final data = jsonDecode(response.body)['emojiDefinitions'];
final data = jsonDecode(utf8.decode(response.bodyBytes))['emojiDefinitions'];

_cachedAt = DateTime.timestamp();
return _cachedEmojiDefinitions = [
Expand Down

0 comments on commit 9b8ee8f

Please sign in to comment.