Skip to content

Commit 19c4222

Browse files
committed
Set parset encoding
1 parent 59067ef commit 19c4222

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎bigpython/webscrap/html.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class Html(BeautifulSoup):
99
def __init__(self, html):
1010
parser = 'lxml' if importlib.find_loader('lxml') else 'html.parser'
11-
super().__init__(html, parser)
11+
super().__init__(html, parser, from_encoding='utf-8')
1212

1313
def get_text(self, selector='p'):
1414
elements = self.select(selector)

0 commit comments

Comments
 (0)