From f8c638cb1d15bd36cec8cb0e8b1a1277ff7a97e1 Mon Sep 17 00:00:00 2001 From: Alessio Buccino Date: Sun, 21 Mar 2021 18:58:37 +0100 Subject: [PATCH] Change encoding to read .set file --- pyxona/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)