diff --git a/.gitignore b/.gitignore index 9aac8182..846ac59a 100644 --- a/.gitignore +++ b/.gitignore @@ -173,4 +173,5 @@ Crawl4AI.egg-info/ requirements0.txt a.txt -*.sh \ No newline at end of file +*.sh +.idea \ No newline at end of file diff --git a/main.py b/main.py index 604fff3c..5dca8771 100644 --- a/main.py +++ b/main.py @@ -66,7 +66,7 @@ async def read_index(request: Request): for filename in os.listdir(partials_dir): if filename.endswith(".html"): - with open(os.path.join(partials_dir, filename), "r") as file: + with open(os.path.join(partials_dir, filename), "r", encoding="utf8") as file: partials[filename[:-5]] = file.read() return templates.TemplateResponse("index.html", {"request": request, **partials})