Skip to content

Commit cca390f

Browse files
committed
fix(web): _get_file_with_content content encoding set to UTF-8
1 parent 9e07751 commit cca390f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

web/server/api/endpoints/files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def walk_path(
168168
def _get_file_with_content(file_path: Path, relative_path: str) -> models.File:
169169
"""Get a file, including its contents."""
170170
try:
171-
content = file_path.read_text()
171+
content = file_path.read_text(encoding="utf-8")
172172
except FileNotFoundError as e:
173173
raise e
174174
except Exception:

0 commit comments

Comments
 (0)