mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-03 06:17:53 +10:00
enforce utf8 on literally all file operations because windows sucks
This commit is contained in:
@@ -16,7 +16,7 @@ def get_file_result_content(res, extra_path, use_pwd=False):
|
||||
if extra_path:
|
||||
fpath = f'{fpath}/{extra_path}'
|
||||
|
||||
with open(fpath, 'r') as file:
|
||||
with open(fpath, 'r', encoding='utf-8') as file:
|
||||
data = file.read()
|
||||
if data:
|
||||
return [data]
|
||||
|
||||
Reference in New Issue
Block a user