Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
adapt to windows (#916)
Browse files Browse the repository at this point in the history
Signed-off-by: Wenxin Zhang <wenxin.zhang@intel.com>
  • Loading branch information
VincyZhang authored Dec 14, 2023
1 parent 57eef5e commit 1685652
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def read_pdf(pdf_path):

def read_html(html_path):
"""Read the html file."""
with open(html_path, 'r') as file:
with open(html_path, 'r', encoding="utf-8") as file:
html = file.read()
soup = BeautifulSoup(html, 'html.parser')
text = soup.get_text(strip=True)
Expand Down

0 comments on commit 1685652

Please sign in to comment.