Skip to content

Commit

Permalink
Merge pull request #565 from MISP/fix-force-utf8-on-read
Browse files Browse the repository at this point in the history
fix: [abstract] Forces file to be read with utf8 encoding
  • Loading branch information
Rafiot committed Apr 24, 2020
2 parents c77603e + f965e57 commit 1be38cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymisp/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class MISPFileCache(object):
def _load_json(path: Path) -> Union[dict, None]:
if not path.exists():
return None
with path.open('r') as f:
with path.open('r', encoding='utf-8') as f:
if HAS_RAPIDJSON:
data = load(f)
else:
Expand Down

0 comments on commit 1be38cf

Please sign in to comment.