1
0
mirror of https://github.com/tiyn/amphora-wiki.git synced 2026-02-22 04:44:48 +01:00

Docker: use utf-8 encoding for working docker-image

This commit is contained in:
TiynGER
2020-10-20 23:40:52 +02:00
parent 26ecbf1007
commit 91d2e940b0
3 changed files with 7 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ def createSearchableData(root):
for r, d, f in os.walk(root):
for file in f:
path = os.path.join(r, file)
fp = open(path)
fp = open(path,encoding='utf-8')
title = fp.readline()
text = title + fp.read()
writer.add_document(title=title, path=path, content=text)