mirror of
https://github.com/NetherlandsForensicInstitute/hansken-python-workshop.git
synced 2026-02-14 13:39:50 +00:00
Add utf8 encoding to data example to let it work in windows
This commit is contained in:
@@ -38,7 +38,7 @@ words = ""
|
||||
with context.search("type:document") as search_result:
|
||||
for trace in search_result:
|
||||
if "text" in trace.data_types:
|
||||
with io.TextIOWrapper(trace.open(stream='text')) as content:
|
||||
with io.TextIOWrapper(trace.open(stream='text'), encoding="utf-8") as content:
|
||||
words += content.read()
|
||||
words
|
||||
|
||||
|
||||
Reference in New Issue
Block a user