From 197051a3ebd15157a27b56ad3c5fb4f30a93c638 Mon Sep 17 00:00:00 2001 From: devatcadam Date: Mon, 20 Oct 2025 11:46:30 +0200 Subject: [PATCH] resolve encoding issue on windows when pipeline .draw("file.html") --- src/neo4j_graphrag/experimental/pipeline/pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/neo4j_graphrag/experimental/pipeline/pipeline.py b/src/neo4j_graphrag/experimental/pipeline/pipeline.py index 150e7078..f6ede6b5 100644 --- a/src/neo4j_graphrag/experimental/pipeline/pipeline.py +++ b/src/neo4j_graphrag/experimental/pipeline/pipeline.py @@ -203,7 +203,7 @@ def draw( G = self._get_neo4j_viz_graph(hide_unused_outputs) # Write the visualization to an HTML file - with open(path, "w") as f: + with open(path, "w", encoding="utf-8") as f: f.write(G.render().data) return G