fix: file read encoding

This commit is contained in:
Alex Wellnitz 2024-09-19 14:45:01 +02:00
parent 95f0df27a4
commit a8651b46e5

View File

@ -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}")