Skip to content

Commit

Permalink
Merge pull request #15 from sonej/utf-8
Browse files Browse the repository at this point in the history
Added utf-8 encoding when reading emojis.json
  • Loading branch information
drivasperez committed Oct 31, 2018
2 parents 51da1ed + ec43a01 commit d1569d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fansi/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class EmojiCodes:
"""

emojipath = path.join(path.dirname(__file__), "emojis.json")
with open(emojipath, "r") as data:
with open(emojipath, "r", encoding="utf-8") as data:
emojis = json.load(data)

@classmethod
Expand Down

0 comments on commit d1569d2

Please sign in to comment.