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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user