Skip to content

Commit b8ff7a9

Browse files
authored
Merge pull request #134 from mic-code/main
Support UTF8 csv
2 parents cefdfb8 + 3dfd121 commit b8ff7a9

File tree

1 file changed

+1
-1
lines changed
  • graphrag_sdk/document_loaders

1 file changed

+1
-1
lines changed

graphrag_sdk/document_loaders/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def __init__(self, path: str, rows_per_document: int = 500):
1414
self.rows_per_document = rows_per_document
1515

1616
def load(self) -> Iterator[Document]:
17-
with open(self.path, "r") as f:
17+
with open(self.path, "r", encoding='utf-8') as f:
1818
reader = csv.reader(f)
1919
rows = [row for row in reader]
2020
num_rows = len(rows)

0 commit comments

Comments
 (0)