fix: file read encoding
This commit is contained in:
parent
95f0df27a4
commit
a8651b46e5
2
main.py
2
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}")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user