scrapy/scrapy — pull request #285 by stav (2013-04-12 17:24:23+00:00)
Title: Re-encode body with UTF8 upon UnicodeEncodeError in SgmlLinkExtractor

When `SgmlLinkExtractor` has `restrict_xpaths` set it runs the possibility of failing to encode the body in `extract_links` if the encoding is wrong.