From 4aff2ee4d6f077e06159c92ab05c0f2ea527c6fa Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Thu, 9 Feb 2012 16:15:56 -0500 Subject: As a last-ditch attempt to turn data into Unicode, use errors=replace instead of errors=strict. --- bs4/builder/_html5lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bs4/builder/_html5lib.py') diff --git a/bs4/builder/_html5lib.py b/bs4/builder/_html5lib.py index 4b80870..9897675 100644 --- a/bs4/builder/_html5lib.py +++ b/bs4/builder/_html5lib.py @@ -29,7 +29,7 @@ class HTML5TreeBuilder(HTMLTreeBuilder): def prepare_markup(self, markup, user_specified_encoding): # Store the user-specified encoding for use later on. self.user_specified_encoding = user_specified_encoding - return markup, None, None + return markup, None, None, False # These methods are defined by Beautiful Soup. def feed(self, markup): -- cgit v1.2.3