From a8651b46e58fd329838db295fc7a50e41243572a Mon Sep 17 00:00:00 2001 From: Alex Wellnitz Date: Thu, 19 Sep 2024 14:45:01 +0200 Subject: [PATCH] fix: file read encoding --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 9c1a973..47f5ea2 100644 --- a/main.py +++ b/main.py @@ -78,7 +78,7 @@ def remove_temp_files(profile_path: str, export_path: str): @functools.lru_cache(maxsize=2) def read_file_with_lru_cache(file_path): # Read the file content - with open(file_path, 'r') as file: + with open(file_path, 'r', encoding="utf-8") as file: file_content = file.read() print(f"Reading from file: {file_path}")