mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
hardcode more encodings
This commit is contained in:
parent
881de8adbe
commit
60ffe0b2b4
2 changed files with 4 additions and 4 deletions
4
index.py
4
index.py
|
@ -8,11 +8,11 @@ from parse import derived_link_info
|
|||
def dump_index(links, service):
|
||||
"""create index.html file for a given list of links and service"""
|
||||
|
||||
with open(INDEX_TEMPLATE, 'r') as f:
|
||||
with open(INDEX_TEMPLATE, 'r', encoding='utf-8') as f:
|
||||
index_html = f.read()
|
||||
|
||||
# TODO: refactor this out into index_template.html
|
||||
with open(INDEX_ROW_TEMPLATE, 'r') as f:
|
||||
with open(INDEX_ROW_TEMPLATE, 'r', encoding='utf-8') as f:
|
||||
link_html = f.read()
|
||||
|
||||
article_rows = '\n'.join(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue