Skip to content

Commit 197051a

Browse files
authored
resolve encoding issue on windows when pipeline .draw("file.html")
1 parent fc4d87a commit 197051a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/neo4j_graphrag/experimental/pipeline/pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def draw(
203203
G = self._get_neo4j_viz_graph(hide_unused_outputs)
204204

205205
# Write the visualization to an HTML file
206-
with open(path, "w") as f:
206+
with open(path, "w", encoding="utf-8") as f:
207207
f.write(G.render().data)
208208

209209
return G

0 commit comments

Comments
 (0)