ignore UTF-8 errors
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user