diff --git a/src/vectorcode/subcommands/query/__init__.py b/src/vectorcode/subcommands/query/__init__.py index 22ab5abc..9c469894 100644 --- a/src/vectorcode/subcommands/query/__init__.py +++ b/src/vectorcode/subcommands/query/__init__.py @@ -151,7 +151,7 @@ def make_output_path(path: str, absolute: bool) -> str: if not os.path.isfile(io_path): logger.warning(f"{io_path} is no longer a valid file.") continue - with open(io_path) as fin: + with open(io_path, encoding = "utf-8") as fin: structured_result.append({"path": output_path, "document": fin.read()}) else: res = cast(Chunk, res)