Skip to content

Commit cb62381

Browse files
authored
Add UTF-8 encoding to file open operation
fixes #307
1 parent 3eacce5 commit cb62381

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vectorcode/subcommands/query/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def make_output_path(path: str, absolute: bool) -> str:
151151
if not os.path.isfile(io_path):
152152
logger.warning(f"{io_path} is no longer a valid file.")
153153
continue
154-
with open(io_path) as fin:
154+
with open(io_path, encoding = "utf-8") as fin:
155155
structured_result.append({"path": output_path, "document": fin.read()})
156156
else:
157157
res = cast(Chunk, res)

0 commit comments

Comments
 (0)