diff --git a/pyxona/core.py b/pyxona/core.py index f6ba025..43be32b 100644 --- a/pyxona/core.py +++ b/pyxona/core.py @@ -265,7 +265,7 @@ def __init__(self, filename): if extension != ".set": raise ValueError("file extension must be '.set'") - with open(self._absolute_filename, "r") as f: + with open(self._absolute_filename, mode="r", encoding="cp1252") as f: text = f.read() attrs = parse_attrs(text)