mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
enforce utf-8 index encoding
This commit is contained in:
parent
fd1435164b
commit
01687fbe89
2 changed files with 3 additions and 3 deletions
2
index.py
2
index.py
|
@ -21,5 +21,5 @@ def dump_index(links, service):
|
|||
|
||||
template_vars = (datetime.now().strftime('%Y-%m-%d %H:%M'), article_rows)
|
||||
|
||||
with open(os.path.join(service, 'index.html'), 'w') as f:
|
||||
with open(os.path.join(service, 'index.html'), 'w', encoding='utf-8') as f:
|
||||
f.write(index_html.format(*template_vars))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue