diff --git a/scrapy/utils/misc.py b/scrapy/utils/misc.py index 3fe1e4122..098bfdfa6 100644 --- a/scrapy/utils/misc.py +++ b/scrapy/utils/misc.py @@ -42,7 +42,7 @@ def load_object(path): return obj -def extract_regex(regex, text, encoding): +def extract_regex(regex, text, encoding='utf-8'): """Extract a list of unicode strings from the given text/encoding using the following policies: * if the regex contains a named group called "extract" that will be returned