Skip to content

Commit 96cb3a1

Browse files
Add encoding when reading popup help file
1 parent 348dc9e commit 96cb3a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hover.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def read_json(self, func, filename='help.json'):
8080
dir_path = os.path.dirname(os.path.realpath(__file__))
8181
jsonfile = os.path.join(dir_path, filename)
8282
try:
83-
with open(jsonfile, 'r') as helpjson:
83+
with open(jsonfile, 'r', encoding='utf-8') as helpjson:
8484
data = json.loads(helpjson.read())
8585
try:
8686
return data[func]

0 commit comments

Comments
 (0)