enforce utf-8 encoding when we open data.json

pull/8/head
Ronald Seoh 6 years ago
parent f0b4365f7c
commit 9c12834217

@ -30,7 +30,7 @@ def main():
print("\033[1;92m[\033[0m\033[1;77m*\033[0m\033[1;92m] Checking username\033[0m\033[1;37m {}\033[0m\033[1;92m on: \033[0m".format(username))
raw = open("data.json", "r")
raw = open("data.json", "r", encoding="utf-8")
data = json.load(raw)
# User agent is needed because some sites does not

Loading…
Cancel
Save