From 7591d781a7a1cdfd6f8f0a9ec6ecd692495e14b5 Mon Sep 17 00:00:00 2001 From: Alexander Brown Date: Sat, 21 Feb 2026 15:05:00 -0800 Subject: [PATCH] fix: specify UTF-8 encoding when reading subgraph files (#12563) On Windows, Python defaults to cp1252 encoding when no encoding is specified. JSON files containing UTF-8 characters (e.g., non-ASCII characters) cause UnicodeDecodeError when read with cp1252. This fixes the error that occurs when loading blueprint subgraphs on Windows systems. https://claude.ai/code/session_014WHi3SL9Gzsi3U6kbSjbSb Co-authored-by: Claude --- app/subgraph_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/subgraph_manager.py b/app/subgraph_manager.py index 6a8f586a4..08ad8c302 100644 --- a/app/subgraph_manager.py +++ b/app/subgraph_manager.py @@ -53,7 +53,7 @@ class SubgraphManager: return entry_id, entry async def load_entry_data(self, entry: SubgraphEntry): - with open(entry['path'], 'r') as f: + with open(entry['path'], 'r', encoding='utf-8') as f: entry['data'] = f.read() return entry