diff --git a/NodeGraphQt/base/graph.py b/NodeGraphQt/base/graph.py index c3231128..0bfeadc5 100644 --- a/NodeGraphQt/base/graph.py +++ b/NodeGraphQt/base/graph.py @@ -907,7 +907,7 @@ def set_context_menu_from_file(self, file_path, menu='graph'): if not file.is_file(): raise IOError('file doesn\'t exist: "{}"'.format(file)) - with file.open() as f: + with file.open(encoding='utf8') as f: data = json.load(f) context_menu = self.get_context_menu(menu) self._deserialize_context_menu(context_menu, data, file)