add utf-8 read (#166)

This commit is contained in:
pdxlocations
2025-04-13 15:17:36 -07:00
committed by GitHub
parent 8d9bbac0be
commit d0ada7eb5b
+1 -1
View File
@@ -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