From 607d0f80e4022ccdd4147bf98ca6532ee7a34272 Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 14 Aug 2024 11:54:15 +0800 Subject: [PATCH] encoding --- pytec/tec_qt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index e96b928..4075a0c 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -73,7 +73,7 @@ class MainWindow(QtWidgets.QMainWindow): self.autotuners = PIDAutoTuner(self, self.client, 2) def get_ctrl_panel_config(args): - with open(args.param_tree, "r") as f: + with open(args.param_tree, "r", encoding="utf-8") as f: return json.load(f)["ctrl_panel"] param_tree_sigActivated_handles = [