From d0ada7eb5b5cac52c2e22e16f21c9f721733b132 Mon Sep 17 00:00:00 2001 From: pdxlocations <117498748+pdxlocations@users.noreply.github.com> Date: Sun, 13 Apr 2025 15:17:36 -0700 Subject: [PATCH] add utf-8 read (#166) --- contact/ui/user_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact/ui/user_config.py b/contact/ui/user_config.py index e7a6b7f..21820df 100644 --- a/contact/ui/user_config.py +++ b/contact/ui/user_config.py @@ -253,7 +253,7 @@ def json_editor(stdscr: curses.window, menu_state: Any) -> None: json.dump({}, f) # Load JSON data - with open(file_path, "r") as f: + with open(file_path, "r", encoding="utf-8") as f: original_data = json.load(f) data = original_data # Reference to the original data