From e1211af98e3990b02125770b629d00be15173937 Mon Sep 17 00:00:00 2001 From: Edward Powell Date: Sat, 8 Jun 2013 15:48:28 -0400 Subject: [PATCH] [url] Fix error on Unicode pages --- url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url.py b/url.py index 2047a0696e..b7a3c1fd8a 100644 --- a/url.py +++ b/url.py @@ -186,7 +186,7 @@ def check_callbacks(willie, trigger, url, run=True): def find_title(url): """Return the title for the given URL.""" - content = web.get(url) + content = web.get(url).decode('utf8') # Some cleanup that I don't really grok, but was in the original, so # we'll keep it (with the compiled regexes made global) for now. content = title_tag_data.sub(r'<\1title>', content)