ignore UTF-8 errors
This commit is contained in:
parent
6a818f4bb4
commit
eb2c43f438
@ -91,7 +91,7 @@ def get_page(url):
|
|||||||
ct_spl = c_type.split('; ')
|
ct_spl = c_type.split('; ')
|
||||||
if len(ct_spl) > 1:
|
if len(ct_spl) > 1:
|
||||||
charset = ct_spl[1].split('=')[1]
|
charset = ct_spl[1].split('=')[1]
|
||||||
page = page_binary.decode(charset)
|
page = page_binary.decode(charset, errors='ignore')
|
||||||
|
|
||||||
return page
|
return page
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user