Skip to content

Commit a16d7d0

Browse files
committed
Fix for Windows encoding issues when generating a summary
1 parent 3d9eec4 commit a16d7d0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

PDFScraper/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "1.0.13"
1+
__version__ = "1.0.14"
22

33
import argparse
44
import logging

PDFScraper/outputGenerator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,5 +322,5 @@ def generate_html(output_path: str, docs: Documents, search_word: str, search_mo
322322
# check if output path is a directory
323323
if not os.path.isdir(output_path):
324324
output_path = str(Path(output_path).parent)
325-
with open(output_path + "/summary.html", "w") as file:
325+
with open(output_path + "/summary.html", "w", encoding='utf-8') as file:
326326
file.write(indent(doc.getvalue()))

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"yattag==1.14.0",
5050
],
5151
name="PDFScraper",
52-
version="1.0.13",
52+
version="1.0.14",
5353
author="Erik Kastelec",
5454
author_email="erikkastelec@gmail.com",
5555
description="PDF text and table search",

0 commit comments

Comments
 (0)